There are three ways to put text inside your tags in Jade.
1. Place the text immediately after the tag, for example.
h1 Some header text
And the output will be:
<h1>Some header text</h1>
2. Place the indented text under the | eg
p | Some text goes | here
And the output will be:
<p>Some text goes here</p>
3. The suffix of the tag with a dot and indented text below (without | ), for example
p. This way 3rd way of putting text inside
And the output will be:
<p>This way 3rd way of putting text inside</p>
So, based on the foregoing, the approach you have chosen (as in your comment) is correct ( option 3 ).
doctype 5 html(lang="en") head style(type='text/css'). .ui-title { margin: 0.6em 10% 0.8em !important; }
I hope this helps.
Tom Feb 14 '14 at 11:14 2014-02-14 11:14
source share