jSmartはSmartyの記法を取り込んだJavaScriptのHTMLレンダリングエンジンです。 Webアプリケーションが増えていくにつれてニーズが上がっているのがJavaScriptのHTMLレンダリングエンジンです。今回紹介するjSmartはSmartyにインスパイアされた、有力なテンプレートエンジンになります。 サンプルです。HTMLが書かれています(当たり前ですが)。 コードです。こちらはテンプレート側、Smarty的な定義や書き方が使えます。 こちらはデータ型。JSONファイルで定義されているのみです。 jSmartを見て分かる通り、テンプレートとデータをミックスして表示しているだけです。データはJSONで定義した後、jSmartのオブジェクトに渡しているだけとなります。これだけシンプルな仕組みであれば、利用は簡単かもしれません。 jSmartはJavaScript製のオープ