Open benphelps opened 12 years ago
HTML (Django):
{% if condition: %}
{% endif %}
HTML (Genshi):
<div py:if="condition"></div>
HTML (Mako):
% if condition:
% endif
Wait, what's the bug here? Everything seems to be working fine...?
Do HTML (Rails) or HTML (Erlang) actually define those snippets?
Also there is no difference to Chocolat between an "HTML" document and a "PHP" document. THEY. ARE. THE. SAME. >:o
Here is an example of the working snippets in TM and the non working (or non defined) ones as well.
http://cl.ly/1116390i2i3D3B1U1y2S - Example of snippets. http://cl.ly/2y3x0R1Q3O0q1Y2M0W1L - Showing the scope of Rails, Django and Genshi snippets
Rails, PHP, Django and Genshi all work.
Also HTML being PHP or PHP being HTML, which ever, is probably the reason other language snippets dont work.
I see. I bet it's a selector precedence issue
The Problem
Chocolat does not inherit language based snippets for the selected HTML (language)
Steps to reproduce the problem
if
Expected Result
For HTML
For PHP
For HTML (Rails)
For HTML (Erlang)