Ananke :: Template.

Ananke :: Templateへのフロントエンドモジュール
今すぐダウンロード

Ananke :: Template. ランキングとまとめ

広告

  • Rating:
  • ライセンス:
  • Perl Artistic License
  • 価格:
  • FREE
  • 出版社名:
  • Udlei D. R. Nattis
  • 出版社のWebサイト:
  • http://search.cpan.org/nattis/

Ananke :: Template. タグ


Ananke :: Template. 説明

Ananke :: Templateへのフロントエンドモジュール Ananke :: Templateはテンプレートtoolkit.synopsistemplate.pl:Ananke :: Templateを使用しているPerlモジュールです。 #vars私の@Array。 push(@Array、{name => 'uglei'、last => 'nattis'})}); push(@Array、{name => 'ananke'、last => '})}); My $ var = {ID => 1、title => 'title' '、text =>' no text '、}; #テンプレートディレクトリとファイルMy $ Template_dir = "./"; My $ template_file = "template.html"; My $ TEMPLATER_VARS = {'hello' => " nhello"、 'scalar' => $ var、 'array' => 、 'register' => @Array、}。 $ template_vars - > {script_name} = "file.pl"; #メソッド1 - プリント#テンプレートオブジェクトを作成するMy $ TEMPLATER = new ananke ::テンプレート($ template_dir); #template $ template-> process($ template_file、$ template_vars)。 #メソッド2 - Print Ananke :: Template :: View_Template($ template_dir、$ template_file、$ template_vars); #メソッド3 - ファイル内での書き込みananke :: template :: view_template($ template_dir、$ template_file、$ template_vars、 "/ tmp / file.html")。 #メソッド4 - 変数に戻るMy $ RETURN = ananke :: template :: view_template($ template_dir、$ template_file、$ template_vars、1)。印刷$ RETURN; template.html: ID: title:テキスト: ] 値= NOME = 、LAST = 終了%]要件: ・Perl


Ananke :: Template. 関連ソフトウェア