Skip to content

Looks good, but no conditions without functions?Β #3

@Norcoen

Description

@Norcoen

Just found this little gem from this article:
https://tqdev.com/2019-php-templating-engine-in-165-lines

So far I really like it but as far as I can see it is not possible to have conditions in the template without calling a dedicated functions which must be provided to the sandbox.

This seems to be impossible:
{{if:SOME_VARIABLE!="sometext")}} Some output {{endif}}

That makes it unpleasant to work with, because it is basic functionality you are probably used to from other engines like FatFreeFramework

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions