Skip to content

Solving expression in conditionals #9

@burlog

Description

@burlog

Hi all, I don't know how to implement solving expressions with current aproach.
Majority of template engines have if statements that can contains expressions like django does:

{% if somevar == "x" %}
  This appears if variable somevar equals the string "x"
{% endif %}

There is no callback like render or test that can satisfy this functionality in simple way. Would not it be better to merge render and test to something like select_value that will return selected value back to dispatching machine. And then it can solve expressions in common way?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions