tyler-sommer / stick

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

Add last filter and Add support for UTF8 to first filter #34

Closed Alex-PK closed 3 years ago

Alex-PK commented 3 years ago

Hi, first of all, thank you for developing stick. I'm a big fan of twig and your project was really helpful in porting some of our apps from PHP to Go.

In the last few months I implemented some of the missing filters in the twig module. This is the first PR, including the last filter and a small fix for the first filter to work correctly with UTF8 strings.

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 PRs! These look great, and no worries about the formatting-- should totally have been done by this point anyway.