openshift-evangelists / workshopper

Workshop content rendering tool
63 stars 40 forks source link

Conditional statements does not work correctly in serverside branch #31

Closed siamaksade closed 7 years ago

siamaksade commented 7 years ago

Serverside branch does not evaluate conditional statements for active modules correctly:

{% if modules.demos_msa-cicd-eap %}
ACTIVATED
{% else %}
NOT ACTIVATED
{% endif %}

Using latest, the above statements prints ACTIVATED for a specific workshop while using the serverside, it would always evaluate to NOT ACTIVATED.

marekjelen commented 7 years ago

Interesting, I will look into that ... after a quick review, the information should be there, might be that the translation between the Java based web application and the JRuby based rendering does not interpret the values correctly.

marekjelen commented 7 years ago

Closing as the serverside will be deprecated anyway.