Skip to content

Instantly share code, notes, and snippets.

@JeroenVdb
Last active October 20, 2016 12:38
Show Gist options
  • Save JeroenVdb/248e8a907f97331418fe9f5f3d36884c to your computer and use it in GitHub Desktop.
Save JeroenVdb/248e8a907f97331418fe9f5f3d36884c to your computer and use it in GitHub Desktop.
Template Preprocessing and BEM CSS syntax problem
%EXTENDS ../html5.01.common
# ------------------------------------------------------------
%CONTEXT
size = 123
# ------------------------------------------------------------
%INPUT
<p th:text="`00${size}00`">...</p>
<p th:text="`00__${size}__00`">...</p>
<p th:text="'00__${size}__00'">...</p>
<p th:text="'00__${size}00'">...</p>
<p th:text="'00'something'00'">...</p>
<p th:text="'00something00'">...</p>
# ------------------------------------------------------------
%OUTPUT
<p>0012300</p>
<p>00__123__00</p>
<p>00__${size}__00</p>
<p>00__${size}00</p>
<p>00something00</p>
<p>00something00</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment