Skip to content
New issue

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

Can't render literal templates #9

Open
00-FF-FF opened this issue Feb 8, 2017 · 0 comments
Open

Can't render literal templates #9

00-FF-FF opened this issue Feb 8, 2017 · 0 comments

Comments

@00-FF-FF
Copy link

00-FF-FF commented Feb 8, 2017

Hi, I can't seem to manage to render a template from a string variable, it just tries to find a file with that name.

mustache "Hello World"

gives an error page:

Errno::ENOENT at /page
No such file or directory @ rb_sysopen - path/to/sinatra/views/Hello World.mustache
file: settings.rb location: read line: 142

whereas

erb "Hello World"

works as expected and prints "Hello World" to screen

Apologies if I'm missing something obvious but I've searched at length and haven't managed to find anything that could help me.

@00-FF-FF 00-FF-FF changed the title Won't render literal templates Can't render literal templates Feb 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant