0
如何在haml中添加Google +1按鈕?如何添加谷歌加號標籤<g:plusone> with haml
結果應該是這個樣子
<g:plusone annotation="inline"></g:plusone>
這個標籤,然後用一段JavaScript,谷歌提供了實際的按鈕所取代。
如何在haml中添加Google +1按鈕?如何添加谷歌加號標籤<g:plusone> with haml
結果應該是這個樣子
<g:plusone annotation="inline"></g:plusone>
這個標籤,然後用一段JavaScript,谷歌提供了實際的按鈕所取代。
我不熟悉與谷歌+1,但產生這樣html
您可以使用此代碼haml
:
%g:plusone{:annotation => "inline"}
我使用HAML與on Rails應用程序的紅寶石,我需要改變()至 { }。 – Mika