High-performance Enhanced Rendering solution, an implement of Pagelet and Bigpipe for Smarty. Hao123前端高性能渲染解决方案
sudo npm install -g her
her-runtime >= 0.0.2 https://github.com/hao123-fe/her-runtime/releases/tag/0.0.2
?__inline
surfix to the pack you want to inlinefis.config.merge({
pack : {
'static/pkg/aio.css?__inline' : [
'static/lib/css/bootstrap.css',
'static/lib/css/bootstrap-responsive.css',
'widget/**.css'
],
'static/pkg/aio.js' : [
'static/lib/js/jquery-1.10.1.js',
'widget/**.js'
]
}
});
her-config
attr of {html}
tag{html her="path/to/main.js" her-config=['inlineCSS' => true]}
Now you can inline tpl via, see http://fex.baidu.com/fis-site/docs/more/fis-standard-inline.html for more
<link rel="import" href="tpl/to/be/inline.tpl?__inline">