set('name', 'blog_info') ->set('title', 'content/lib/article.getInfo#name') ->import('inc/head') ->render('content/lib/article.getInfo', array ( 'article h1' => '$v.name', '.wz_info span|0' => '作者:<{$v.author.name}>', '.wz_info span|1' => '时间:<{$v.cdate}>', '.wz_info span|2' => '阅读:<{$v.num_view}>', '.content' => '$v.content', '.diggit@style' => 'display:none', '.share@style' => 'display:none', 'article .tags' => '$v.tag_html', '.info-pre-next p@style|0' => '<{$v.prev ? "" : "display:none"}>', '.info-pre-next a|0' => '$v.prev.name', '.info-pre-next a@href|0' => '$v.prev.link', '.info-pre-next p@style|1' => '<{$v.next ? "" : "display:none"}>', '.info-pre-next a|1' => '$v.next.name', '.info-pre-next a@href|1' => '$v.next.link', '.designer img@src|0' => '$v.author.avatar', '.designer img@style|1' => 'display:none', '.designer h3' => '$v.author.name', '.designer p' => '$v.author.desc', )) ->loop ( '.wz_love li', 'content/lib/article.getRelation', array ( 'a' => array ( 'href' => '$v.link', 'title' => '$v.name', 'target' => '', 'img' => array ( 'src' => '$v.pic_cover', 'alt' => '$v.name', ), 'h2' => array ( 'html' => '$v.name', ), 'span' => array ( 'html' => '$v.cdate', ) ), ) ) ->fetch(array('.wz_love@style', 0), 'content/lib/article.getRelation', 'none') ->loop ( '.ad a', 'main/api.ad|key=ad_foot&name=底部广告', array ( 'href' => '$v.link', 'title' => '$v.name', 'img' => array ( 'src' => '$v.pic', 'alt' => '$v,name', ) ) ) ->fetch(array('.ad@style', 0), 'main/api.ad?key=ad_foot&name=底部广告', 'none') ->import('inc/right') ->import('inc/foot') # display ->display();