【问题标题】:how would I write this using haml我怎么用haml写这个
【发布时间】:2013-03-21 14:15:34
【问题描述】:

我正在尝试使用 fonts.com 网络字体加载器。但是我正在处理的页面是用 haml 创建的。我对 haml 比较陌生,因此无法使用加载程序将此脚本标记转换为新语法。

<script type="text/javascript">

    WebFont.load({

        monotype: {

            projectId: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'///this is your Fonts.com Web Fonts projectId



        }

    });

</script>

【问题讨论】:

    标签: haml


    【解决方案1】:

    你可以使用:javascript过滤器

    :javascript
      WebFont.load({
          monotype: {
                projectId: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
            }
      });
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-07-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-08-13
      • 1970-01-01
      • 2012-09-09
      • 2021-07-22
      相关资源
      最近更新 更多