stencilproject / Stencil

Stencil is a simple and powerful template language for Swift.
https://stencil.fuller.li
BSD 2-Clause "Simplified" License
2.33k stars 221 forks source link

Not complete support with Mustache #271

Closed rkbansal closed 5 years ago

rkbansal commented 5 years ago

I wonder if there is a way in the stencil to support the exact syntax of the mustache. How can someone just parse the if and endif condition in the mustache? Right conditions in stencil are like this, {% if activeFilesCount %} {{activeFilesCount}} {% endif %}

but how can I use the template in mustache as it has different syntax than this?

ilyapuchka commented 5 years ago

Stencil is not an implementation of Mustache, it's a templating DSL on its own. If you need implementation of Mustache checkout https://mustache.github.io