github.com/servernoj/jade@v0.0.0-20231225191405-efec98d19db1/testdata/v2/interpolation.tpl (about) 1 {{/* var title = "On Dogs: Man's Best Friend"; */}}{{/* var author = "enlore"; */}}{{/* var theGreat = "<span>escape!</span>"; */}} 2 <h1>{{ title }}</h1> 3 <p>Written with love by {{ author }}</p> 4 <p>This will be safe: {{ theGreat }}</p> 5 {{/* var msg = "not my inside voice"; */}} 6 <p>This is {{ strings.ToUpper(msg) }}</p> 7 <p>No escaping for {{ `}` }}!</p> 8 <p>Escaping works with \#{interpolation}</p> 9 <p>Interpolation works with {{ "#{interpolation}" }} too!</p> 10 {{/* var riskyBusiness = "<em>Some of the girls are wearing my mother's clothing.</em>"; */}} 11 <div class="quote"> 12 <p>Joel: {{ riskyBusiness }}</p> 13 </div> 14 <p> 15 This is a very long and boring paragraph that spans multiple lines. 16 Suddenly there is a <strong>strongly worded phrase</strong> that cannot be <em>ignored</em>. 17 </p> 18 <p>And here's an example of an interpolated tag with an attribute: <q lang="es">¡Hola Mundo!</q> 19 </p> 20 <p>If I don't write the paragraph with tag interpolation, tags like<strong>strong</strong>and<em>em</em>might produce unexpected results. 21 </p> 22 <p>If I do, whitespace is <strong>respected</strong> and <em>everybody</em> is happy. 23 </p>