- var title = "On Dogs: Man's Best Friend"; - var author = "enlore"; - var theGreat = "<span>escape!</span>";
h1= title p Written with love by #{author} p This will be safe: #{theGreat}
通过 h1= 的方式,可以直接把变量塞入标签
或者通过 #{author} 的方式与标签里的其它内容共处
注入标签
1 2 3 4 5 6 7
p. This is a very long and boring paragraph that spans multiple lines. Suddenly there is a #[strong strongly worded phrase] that cannot be #[em ignored]. p. And here's an example of an interpolated tag with an attribute: #[q(lang="es") ¡Hola Mundo!]