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

Resolvable boolean expressions #325

Closed djbe closed 1 year ago

djbe commented 1 year ago

Reopening #164, as it's been rebased on master, and the failing tests have been fixed.

The issue was that the old PR was replacing all our logic in VariableNode.parse(:token:) with a simple compileExpression + compileFilter. This PR moves those 2 into that function, so that it also applies to … if … else … expressions.

SwiftGen-Eve commented 1 year ago

Hey 👋 I'm Eve, the friendly bot watching over Stencil 🤖

Thanks a lot for your contribution!


Seems like everything is in order 👍 You did a good job here! 🤝

Generated by :no_entry_sign: Danger