【发布时间】:2014-08-27 01:42:18
【问题描述】:
使用 Middleman,我如何链接多个文件扩展名以供多个引擎处理?
Middleman 开箱即用地处理 CoffeeScript,我的 Gemfile 中有 gem middleman-react,config.rb 中有 activate :react。
处理像 my_file.js.jsx 这样的常规 jsx 文件可以正常工作,但我想要像 my_file.js.jsx.coffee 这样的文件,但它不起作用。
它被正确解析为 CoffeeScript,但随后不被解析为 jsx。
这是一些示例输出:
BoardRow = React.createClass({
render: function() {
return <tr className='row'>{this.props.intersections}</tr>;
}
});
基于this post,看起来这种事情应该是可能的。
【问题讨论】:
-
尝试在
middleman-react的问题队列中提问。
标签: ruby coffeescript sprockets middleman tilt