set('name', 'video_info') ->set('title', 'content/lib/video.getInfo#name') ->import('inc/head') ->render('content/lib/video.getInfo', array ( '.play_info h1' => '$v.name', '.play_info p|0' => '热度:<{$v.num_view}>', '.play_info p|1' => '时间:<{$v.cdate}>', '.play_info p|2' => '简介:<{$v.desc}>', '.play_info .play_tags' => '$v.tag_html', '#diggnum' => '$v.num_up', '#diggnum @data-id' => '$v.id', '#diggnum @data-url' => '$v.up_url', 'source@src' => '$v.video', )) ->loop ( '.all_videos li', 'content/lib/video.getRelation', array ( 'a' => array ( 'href' => '$v.link', 'title' => '$v.name', 'target' => '', 'img' => array ( 'src' => '$v.pic_cover', 'alt' => '$v.name', ), 'p' => array ( 'html' => '$v.name', ), 'span' => array ( 'html' => '已有 <{$v.num_view}> 次观看', ) ), ) ) ->fetch(array('.box@style', 2), 'content/lib/video.getRelation', 'none') ->import('inc/foot') # display ->display();