jadeで属性値を使いまわしたいのですが、以下のコードでエラーが出てしまいました。色々と試行錯誤しましたが、上手く行きません。何か方法をご教授いただけませんでしょうか、よろしくお願い致します。
jade
1- var postUrl = config.url + url_for(page.path) 2 3mixin onClick(width,height,windowName) 4 |"window.open(encodeURI(decodeURI(this.href)), "#{windowName}", "width=#{width}, height=#{height}, personalbar=0, toolbar=0, scrollbars=1, sizable=1"); return false;" 5 6nav.post-share 7 8 .twitter 9 a( 10 class="btn" 11 title="この記事をツイート" 12 href="http://twitter.com/share?count=horizontal&original_referer=#{postUrl}&text=#{page.title}&url=#{postUrl}" 13 target="_blank" 14 onClick= +onClick(650,470,'tweetwindow') 15 rel="nofollow" 16 ) 17 span( 18 class="icon" 19 ) 
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。