Skip to content

Can't render literal templates #9

@00-FF-FF

Description

@00-FF-FF

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions