noahmorrison / chevron

A Python implementation of mustache
MIT License
480 stars 52 forks source link

Code examples suggest the render function doesn't return anything #97

Open rooby opened 3 years ago

rooby commented 3 years ago

The examples in the readme all do nothing with the output of the render() function, which confusingly seems to indicate that there is no output from that function.

For example:

chevron.render('Hello, {{ mustache }}!', {'mustache': 'World'})

Should be something like

renderedString = chevron.render('Hello, {{ mustache }}!', {'mustache': 'World'})

or similar, so that it's obvious what it's returning.

MartinDelille commented 1 year ago

Thanks! I couldn't understand why the render wasn't outputing anything! 😄