foundweekends / giter8

a command line tool to apply templates defined on GitHub
https://www.foundweekends.org/giter8/
Apache License 2.0
1.74k stars 224 forks source link

Unhyphenate #74

Closed manuelbernhardt closed 3 years ago

manuelbernhardt commented 12 years ago

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?

sebnozzi commented 10 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).

janjaali commented 4 years ago

Just for those who stumble upon this issue, the 'space' format is the one the original reporter was looking for here ;)

TonioGela commented 3 years ago

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":

I just tested these expressions locally using 0.13.1 as the ugly screenshots are testifying:

image image

Given all of this, isn't this issue closable @eed3si9n ?

TonioGela commented 3 years ago

FYI if anybody thinks these expressions are worth documenting I can open a PR to add them to documentation.

eed3si9n commented 3 years ago

ok. closing this then.