jQuery+jTemplatesでごにょごにょやってて、ちょっと悩んだのでメモ。 データ var data = { status: 'success', base_url: 'http://localhost/entry/edit/', entries: [ { id: "1", title: "title1" }, { id: "2", title: "title2" } ] }; テンプレート {#if status == 'success'} <ul> {#foreach $T.entries as entry} <li><a href="{$T.base_url}{$T.entry.entry_id}">{$T.entry.title}</a></li> {#else} <li>no entries.</li> {#/foreach} </ul> {#else} failed t