HtmlAssets includes static html templates in the asset pipeline so you can use them in Javascript. Think Angular.
gem install html_assets
//= require html_assets
//= require_tree ./html
console.log(HTML_Assets)
App.directive 'htmlAsset', ->
definition =
replace: true
restrict: 'A'
compile: (tElement, tAttrs, transclude) ->
tElement.html(HTML_Assets[tAttrs.htmlAsset])
<div html-asset="tasks/form"></div>