tyler-sommer / stick

A golang port of the Twig templating engine
MIT License
183 stars 36 forks source link

Add json encode filter #35

Closed Alex-PK closed 3 years ago

Alex-PK commented 3 years ago

Hi,

this PR implements the json_encode filter in the twig module.

Sorry for the other unrelated "fixes". Goland insists on "autofixing" the code with the gofmt conventions before doing a commit. Let me know if they are a problem and I'll see if I can find a way to remove them.

tyler-sommer commented 3 years ago

Thanks for the PR! :D