• <tfoot id='HWWuQ'></tfoot>

    1. <i id='HWWuQ'><tr id='HWWuQ'><dt id='HWWuQ'><q id='HWWuQ'><span id='HWWuQ'><b id='HWWuQ'><form id='HWWuQ'><ins id='HWWuQ'></ins><ul id='HWWuQ'></ul><sub id='HWWuQ'></sub></form><legend id='HWWuQ'></legend><bdo id='HWWuQ'><pre id='HWWuQ'><center id='HWWuQ'></center></pre></bdo></b><th id='HWWuQ'></th></span></q></dt></tr></i><div id='HWWuQ'><tfoot id='HWWuQ'></tfoot><dl id='HWWuQ'><fieldset id='HWWuQ'></fieldset></dl></div>

      1. <legend id='HWWuQ'><style id='HWWuQ'><dir id='HWWuQ'><q id='HWWuQ'></q></dir></style></legend>
          <bdo id='HWWuQ'></bdo><ul id='HWWuQ'></ul>
      2. <small id='HWWuQ'></small><noframes id='HWWuQ'>

        如何在 Locomotivejs 中设置咖啡脚本?

        How do I set coffescript in Locomotivejs?(如何在 Locomotivejs 中设置咖啡脚本?)
          <legend id='VFGSs'><style id='VFGSs'><dir id='VFGSs'><q id='VFGSs'></q></dir></style></legend>

          <tfoot id='VFGSs'></tfoot>
            <tbody id='VFGSs'></tbody>

          <i id='VFGSs'><tr id='VFGSs'><dt id='VFGSs'><q id='VFGSs'><span id='VFGSs'><b id='VFGSs'><form id='VFGSs'><ins id='VFGSs'></ins><ul id='VFGSs'></ul><sub id='VFGSs'></sub></form><legend id='VFGSs'></legend><bdo id='VFGSs'><pre id='VFGSs'><center id='VFGSs'></center></pre></bdo></b><th id='VFGSs'></th></span></q></dt></tr></i><div id='VFGSs'><tfoot id='VFGSs'></tfoot><dl id='VFGSs'><fieldset id='VFGSs'></fieldset></dl></div>
          • <bdo id='VFGSs'></bdo><ul id='VFGSs'></ul>
              1. <small id='VFGSs'></small><noframes id='VFGSs'>

                1. 本文介绍了如何在 Locomotivejs 中设置咖啡脚本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  如何在 Locomotivejs 中设置 coffeescript.

                  What should I do to set coffeescript in Locomotivejs.

                  这似乎很容易,但我想不通.

                  It seems very easy, but I couldn't figure that out.

                  我在all.js"中设置了选项,没有运气.

                  I set options in "all.js", without luck.

                  我想我已经快到了,或者很远才能做到这一点.:(

                  I think I'm almost there or very far to get it right. :(

                  this.set("options",{coffee:true});
                  

                  感谢任何帮助.

                  推荐答案

                  您需要添加一个 server.js 文件并使用 CoffeeScript 支持启动 Locomotive,如下所示:

                  You'll want to add a server.js file and boot Locomotive with CoffeeScript support, like so:

                  locomotive = require('locomotive')
                  
                  locomotive.boot('.', 'development', {"coffeeScript": true}, (err, server) -> 
                    throw err if (err)
                  
                    server.listen(3000, 'localhost', ()-> 
                      addr = this.address()
                      console.log('listening on %s:%d', addr.address, addr.port);
                    )
                  )
                  

                  启动应用程序:

                  $ node server
                  

                  此拉取请求中有更多信息:https://github.com/jaredhanson/locomotive/pull/44

                  There's more info in this pull request: https://github.com/jaredhanson/locomotive/pull/44

                  将在即将发布的版本中添加对 lcm 命令行的 --coffee 选项的支持.

                  Support for a --coffee option to the lcm command line will be added to an upcoming release.

                  这篇关于如何在 Locomotivejs 中设置咖啡脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Rails/Javascript: How to inject rails variables into (very) simple javascript(Rails/Javascript:如何将 rails 变量注入(非常)简单的 javascript)
                  CoffeeScript always returns in anonymous function(CoffeeScript 总是以匿名函数返回)
                  Ordinals in words javascript(javascript中的序数)
                  getFullYear returns year before on first day of year(getFullYear 在一年的第一天返回前一年)
                  How do I make a TextGeometry multiline? How do I put it inside a square so it wraps like html text does inside a div?(如何制作 TextGeometry 多线?如何将它放在一个正方形内,以便它像 html 文本一样包裹在 div 内?) - IT屋-程序员软件开发技术分享社
                  How to use coffeescript in developing web-sites?(如何在开发网站时使用coffeescript?)

                        <bdo id='P7qPj'></bdo><ul id='P7qPj'></ul>

                          <tbody id='P7qPj'></tbody>
                        <i id='P7qPj'><tr id='P7qPj'><dt id='P7qPj'><q id='P7qPj'><span id='P7qPj'><b id='P7qPj'><form id='P7qPj'><ins id='P7qPj'></ins><ul id='P7qPj'></ul><sub id='P7qPj'></sub></form><legend id='P7qPj'></legend><bdo id='P7qPj'><pre id='P7qPj'><center id='P7qPj'></center></pre></bdo></b><th id='P7qPj'></th></span></q></dt></tr></i><div id='P7qPj'><tfoot id='P7qPj'></tfoot><dl id='P7qPj'><fieldset id='P7qPj'></fieldset></dl></div>

                        <legend id='P7qPj'><style id='P7qPj'><dir id='P7qPj'><q id='P7qPj'></q></dir></style></legend>
                          • <tfoot id='P7qPj'></tfoot>

                            <small id='P7qPj'></small><noframes id='P7qPj'>