标签:style blog color 使用 for ar art div
1 mixin article(title) 2 .article 3 .article-wrapper 4 h1= title 5 if block 6 block 7 else 8 p No content provided 9 10 +article(‘Hello world‘) 11 12 +article(‘Hello world‘) 13 p This is my 14 p Amazing article
渲染后变为
1 <div class="article"> 2 <div class="article-wrapper"> 3 <h1>Hello world</h1> 4 <p>No content provided</p> 5 </div> 6 </div> 7 <div class="article"> 8 <div class="article-wrapper"> 9 <h1>Hello world</h1> 10 <p>This is my</p> 11 <p>Amazing article</p> 12 </div> 13 </div>
标签:style blog color 使用 for ar art div
原文地址:http://www.cnblogs.com/xuntu/p/3920279.html