2012-12-13 いまさらVariadic Templatesをまとめてみる C++ この記事はC++ Advent Calendar 2012の13日目です。 Variadic Templatesとは C++11ではテンプレートで"."を3つ付けることが出来るようになりました、 こんな感じで。 template <class... Ts> これで何... 続きを読む
まだ master にはマージしてないですが kazuho/user-defined-templates ブランチのやつを使うと、 class Adder. { static function f(x : T, y : T) : T { return x + y; } } class Test { static function run() : void { var n = Adder.number>.f(1, 3); log ... 続きを読む
Python 製の documentation tool であるところの sphinx は非常に便利なのであって、オススメなのだけれど、これをカスタマイズする方法の情報はすくないので、普通に公式ドキュメントを読むのがはやく、読んだ結果のことをまとめておく。テンプレートのカスタ... 続きを読む
モダンPerlの世界へようこそ 第42回 Template Toolkit:Perl製テンプレートエンジンのデファクトスタンダード 2011年6月30日 石垣憲一 Perl, モダンPerl, HTML::Template Toolkit フィルタ, テンプレート, モジュール, エンコーディング, Template この記事を... 続きを読む
モダンPerlの世界へようこそ 第41回 HTML::Template::Pro:テンプレートに極力コードを書かせたくないときは 2011年5月12日 石垣憲一 Perl, モダンPerl, HTML::Template Perl, テンプレート, HTML, オブジェクト, Template この記事を読むのに必要な時間:およ... 続きを読む
モダンPerlの世界へようこそ 第40回 Text::MicroTemplate:得意分野なんだからPerlを使えばいいじゃない,という方に 2011年3月24日 石垣憲一 Perl, モダンPerl, Text::MicroTemplate, Text::Template, HTML::Mason テンプレート, Text, HTML, Mason, Perl, Te... 続きを読む
Dwoo - a PHP5 Template EngineDwoo is a PHP5 template engine positioned as an alternative to Smarty, it is (nearly) fully compatible with its templates and plugins, but it is written from scratch and aimed at going one step further with a clea... 続きを読む
https://github.com/tokuhirom/Template-Cascading前回の話は、DOM ベースでうわがきすればいいんじゃね、っていう話が本筋だということにきづいたので、そういう風にできるライブラリをつくってみた。Just a PoC なんですけど。カスケーディングって HTML んと... 続きを読む
HTML をレンダリングするのに継承ベースのテンプレートエンジンがいけてる風な風潮があるけれど、どうも継承ベースってのはとっつきづらい気がしてる。INCLUDE していく方がデザイナーちゃんにはわかりいいんじゃないかとおもってる。そもそもテンプレートの継... 続きを読む
There‘s also a convenience method for rendering sub templates within the current controller that depends on a single object (we call this kind of sub templates for partials). It relies on the fact that partials should follow the naming conve... 続きを読む
Logic-less templates. Available in Ruby, JavaScript, Python, Erlang, PHP, Perl, Go, Lua, ooc, and for node.js. Works great with TextMate, Vim, and Emacs. The Manual: mustache(5) and mustache(1) Demo 続きを読む
世にテンプレートエンジンは多くあれど、 これ程多くの場所で活躍出来るテンプレートエンジンはなさそうです。 本稿はそんなテンプレートエンジン「Mustache」の試用レビューです。 Mustacheについて {{ mustache }} “Mustache”というのは口ひげを指す言葉で... 続きを読む
Enforcing Strict Model-View Separation in Template Engines Nominated for best paper Terence Parr University of San Francisco ABSTRACT The mantra of every experienced web application developer is the same: thou shalt separate business logic f... 続きを読む
先日のPycon mini JPでは、Tenjinのトークが好評だったようでした*1。How to Create a Highspeed Template Engine in Pythonこのスライドの中で述べられているのは以下のような事です。 Web Appの実行時間の中でViewコンポーネントが占める割合は意外と大きいテ... 続きを読む
How to Create a High-Speed Template Engine in Python 1 day ago Loading… Flash Player 9 (or above) is needed to view presentations. We have detected that you do not have it on your computer. To install it, go here. 続きを読む
Sam Graham's website > Projects > Perl Template Roundup > October 2010 > Performance vs Variant Report: instance_reuse In each of the charts below, a bigger bar and higher number for performance is better. In the performance drop-off charts a... 続きを読む
Having been a little busy for the past month and a half, my attempts to do the next Perl Template Roundup got delayed from September into October, partly by adding a number of new engine plugins to Template::Benchmark: HTML::Mason HTML::Macro... 続きを読む
In the next few weeks I'll be starting to gather data for the September 2010 edition of Template Roundup, and so now is your last chance for any requests or suggestions to make it into the report. Take a look at the previous reports or the li... 続きを読む
Welcome to Jinja2 Jinja2 is the new and improved version of Jinja with tons of new features, a simpler and faster runtime. Get the latest version from the cheeseshop. read the documentation checkout the sourcecode download a release version h... 続きを読む
風邪ひいてました。寝過ぎて首痛い。 5日ぶりのPerlです。相変わらず可愛い。 5日間パソコンでネットサーフィンしないとどれくらい置いて行かれるんだろうーと思ってたけど、twitterで大半捕獲出来ますね。twitterすごい!Shibuya.pm応募出来なかったけどね…。... 続きを読む