Hao123 Fe Her Versions Save

High-performance Enhanced Rendering solution, an implement of Pagelet and Bigpipe for Smarty. Hao123前端高性能渲染解决方案

v0.1.5

7 years ago

0.1.4

7 years ago

Install

sudo npm install -g her

Features

1. Sopport layout CSS inline

Requirement

her-runtime >= 0.0.2 https://github.com/hao123-fe/her-runtime/releases/tag/0.0.2

Usage

1. add ?__inline surfix to the pack you want to inline
fis.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'
        ]
    }
});
2. Config her-runtime via her-config attr of {html} tag
{html her="path/to/main.js" her-config=['inlineCSS' => true]}

2. Fix tpl inline bug

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">

0.1.3

7 years ago

0.0.8

8 years ago

v0.0.5

8 years ago

0.0.7

8 years ago