テンプレートの静的解析とリファクタリング

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest. →
aereal
October 17, 2014

 テンプレートの静的解析とリファクタリング

Talk at テンプレートエンジン Night

aereal

October 17, 2014

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

Transcript

39 slides
  1. _post.tt [%- SET formatted = with_ellipsis ? (post.body | truncate)

    : post.body %] <h1>[% post.title %]</h1> <div class="body">[% formatted %]</div>
  2. index.tt [%# blog %] ... [% FOR post IN posts

    %] [% INCLUDE "_post.tt" WITH blog = blog, ... %] [% END %]
  3. T::X::Parser my $template = "my name is [% name %]";

    my $parser = Text::Xslate::Syntax::TTerse->new; my $ast = $parser->parse($template);
  4. ׬

More Decks by aereal

Other Decks in Programming