carrot / sprout

:seedling: simple project templating & skeletons

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

reviewing comparable project: khaos

kylemac opened this issue · comments

https://github.com/segmentio/khaos

features I like:

  • they use handlebars instead of ejs. it's a lot more readable and maybe even more common at this point. i assume you can use functions, {{ slugify(foo) }} but i haven't tried this
  • they apparently have a no-config base setup that evaluates your files and then prompts for whatever variables you've defined within your template dir

for the functions you need to register them as a helper in handlebars: http://handlebarsjs.com/reference.html#base-registerHelper
The syntax ends up looking like this {{ slugify foo }}