Closed tvararu closed 2 years ago
Follow-up from https://github.com/DFE-Digital/rails-template/pull/3#pullrequestreview-967903357
This makes it actually possible to use Thor templates properly, as I originally intended (but didn't know how to do).
ERB files now need to use <%% for ERB that is meant to be passed as-is.
<%%
Also reorganise files in a way that makes more sense (standard Rails hierarchy instead of flat tmpl folder).
tmpl
Clean up the template.rb a bit as well and use --force in the README example (which automatically overwrites).
template.rb
--force
README
Tested by running:
bin/rails app:template LOCATION=https://raw.githubusercontent.com/DFE-Digital/rails-template/source-path-templates/template.rb
Follow-up from https://github.com/DFE-Digital/rails-template/pull/3#pullrequestreview-967903357
This makes it actually possible to use Thor templates properly, as I originally intended (but didn't know how to do).
ERB files now need to use
<%%
for ERB that is meant to be passed as-is.Also reorganise files in a way that makes more sense (standard Rails hierarchy instead of flat
tmpl
folder).Clean up the
template.rb
a bit as well and use--force
in theREADME
example (which automatically overwrites).Tested by running: