Closed manuelbernhardt closed 3 years ago
I also needed a formatter which was not there.
A very handy feature would be the ability to write your own formatters in your template, that is: without touching the giter8 codebase (as I had to do).
@manuelbernhardt : Until then, you can write your own formatter in your giter8 fork. It might also be accepted (merged) as my mini-change was (see #118 and #119).
Just for those who stumble upon this issue, the 'space' format is the one the original reporter was looking for here ;)
Just for those who stumble upon this issue, the 'space' format is the one the original reporter was looking for here ;)
Exactly, in particular given foo="my-nice-project"
:
myNiceProject
can be obtained with $foo;format="space,start,word,decap"$
myNiceProject
can be obtained with $foo;format="space,start,word"$
my nice project
can be obtained with $foo;format="space"$
I just tested these expressions locally using 0.13.1
as the ugly screenshots are testifying:
Given all of this, isn't this issue closable @eed3si9n ?
FYI if anybody thinks these expressions are worth documenting I can open a PR to add them to documentation.
ok. closing this then.
Based on a lowercase hyphen'd key such as
my-nice-project
I'd like to generate:I guess that a hyphen to whitespace transformation would do the trick here?