Skip to content
zhangwentao edited this page Jun 14, 2016 · 1 revision

编程接口

Her 提供的编程接口如下:

Smarty模板

Javascript

css

使用示例

下面的代码展示了 Her 提供的部分API:

{html her="common:static/lib.js"}
  {head}
    {title}This is title{/title}
    {require name="common:reset.css"}
    ...some thing else in head.
  {/head}
  {body}

    ...some thing outside before pagelet.

    {require name="common:page.css"}
    {pagelet id="mypagelet"}
       {require name="module:pagelet.css"}
       ...some thing inside pagelet.
    {/pagelet}

    ...some thing outside after pagelet.

  {/body}
{/html}
Clone this wiki locally