0

I am using jade as a kind of markup language for a thermal printer. That means on the website i render a print preview to html, and i am sending the jade(with custom tags) directly to the printer which interprets the tags for different text styles. It works pretty well but now i would like to use also locals in that template but render only the locals not to html.

That means

p #{name} 

should become

p John Doe

instead of

<p>John Doe</p>

Is there a possibility to do this with some function in the jade package ? Or do i need to write that from scratch. I also want to use jade "each" loop.

4

1 に答える 1

1

パイプ記号を前に付けることができます。

| p #{name}
于 2013-11-08T15:07:22.730 に答える