Flaque / thaum

Thaum is a simple boilerplate and scaffolding command line utility.
https://flaque.github.io/thaum/
MIT License
23 stars 3 forks source link

Include more than just "name" variables #4

Closed Flaque closed 7 years ago

Flaque commented 7 years ago

But it would be nice to have the ability to have more than just the name variable in the template.

So:

import "{{package}}"

class {{name}} {
  //things 
  foo({{myVariable}});
}

This could be done by checking the template for {{variables}}'s and then displaying them to the user to fill in in an output.

So the "thaum" UX could be updated to show:

$ thaum myTemplate
πŸ”  Using thaum_files at: "/Users/Flaque/myProject/thaum_files"

    name       : <User has entered content here> 
    package    : <User is prompted to enter content here> 
    myVariable : <User will be prompted for this after they complete the previous> 

Pros

Cons