2017-10-17 4 views
0

私はループ変数の値をHTMLコメント内に書き込もうとしていますが、私のコメントには生のテキストしかありません。テンプレート内コメント内の変数を補間する

:コメント行のための

div This is a simple div 
- for itervalue in names 
    label 
     //This is a html comment for item #{itervalue} sent to client 
     input(type='radio', name='item_name', value=itervalue) 
     span item : #{itervalue} 
    br 

結果:

<!--This is a html comment for item #{itervalue} sent to client--> 

はヒスイ/パグコメントの中の文字列を補間することが可能ですか?

答えて

1

あなたは、HTMLのコメントを使用する必要があります。

<!-- This is a html comment for item #{itervalue} sent to client -->

+0

だから、簡単な:-)感謝を! – Seki