We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This doesn't work with quick one off template generation tasks.
The text was updated successfully, but these errors were encountered:
I am having the same problem, it seems to work in Bundler though. See my question on StackOverflow: http://stackoverflow.com/questions/6498058/passing-options-to-template-function-in-thor
Sorry, something went wrong.
I'm sure I'm missing something in the documentation, but I can get it to work if I reference it like so:
in install.thor
install.thor
def install opts = {:name => 'Workergnome'} template "templates/install.tt", "install.txt", opts end
in templates/install.tt
templates/install.tt
My name is <%= config[:name] %>
No branches or pull requests
This doesn't work with quick one off template generation tasks.
The text was updated successfully, but these errors were encountered: