jeromegn / slang

Slim-inspired templating language for Crystal
MIT License
236 stars 30 forks source link

Render variable content as unescaped HTML #63

Closed notramo closed 2 years ago

notramo commented 2 years ago

Assume variable safehtml="<b>strong text</b>". I want to render it without escaping. The following template escapes it:

- safehtml
notramo commented 2 years ago

Sorry, I haven't read the docs carefully. I just found out that == is exactly for this use case.