私がやりたいことは次のとおりです。
%input.current-page( type="text" value=currentPageNum )
currentPageNumは動的です。
それが私がこのテンプレートを呼び出す方法です:
@$el.html( Haml.render( @template, { locals: { currentPageNum: @currentPageNum } } ) )
この質問はhaml.jsに関するものですが、ここで新しいタグを作成するのに十分な評判がありません