How to add class in DIET template

Suliman via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jun 22 23:59:22 PDT 2017


I need to get external variable and make class by it's value

- string mystr = "lng-" ~ language;
- foreach(i, line; arrayOfLines )
	li
		code.mystr #{line}

I need to get HTML code like this:

<li>
<code class="lng-d">some D code</code>
</li>

But class name become "mystr" and I am getting:

<li>
<code class="mystr">some D code</code>
</li>

How to fix it?


More information about the Digitalmars-d-learn mailing list