テキスト::テンプレート

Text :: Templateは、埋め込みPerlを使用してテンプレートテキストを展開するPerlモジュールです。
今すぐダウンロード

テキスト::テンプレート ランキングとまとめ

広告

  • Rating:
  • ライセンス:
  • Perl Artistic License
  • 価格:
  • FREE
  • 出版社名:
  • Mark Jason Dominus
  • 出版社のWebサイト:
  • http://search.cpan.org/mjd/

テキスト::テンプレート タグ


テキスト::テンプレート 説明

TEXT :: TEMPLATEは、埋め込みPerlでテンプレートテキストを展開するPerlモジュールです。 Text :: Templateは、埋め込みPerlを含むテンプレートテキストを展開するPerlモジュールです..Synopsisを使用するText :: Templateを使用します。 $ template = text :: template-> new(type => 'file'、source => 'filename.tmpl'); $ template = text :: template-> new(type => '配列'、source => ); $ template = text :: template-> new(type => 'filehandle'、source => $ fh); $ template = text :: template-> new(type => 'string'、source => '...'); $ template = text :: template-> new(prepend => q {厳密;}を使用;}、...); #異なるテンプレートファイルの構文を使用します。構文:$ template = text :: template-> new(delimiters => 、...); $ recipient = 'king'; $ text = $ template-> fill_in(); # `{$受信者} 'を` king'印刷$テキストに置き換えます。 $ t :: recipient = 'Josh'; $ text = $ template-> fill_in(package => t); #pass多数の変数を明示的に$ hash = {recipient => 'abed-nego'、友達=> 、敵=> {laathsome => 'Bill Gates'、Fearsome => 'Larry Ellison' }、} $ text = $ template-> fill_in(ハッシュ=> $ HASH、...); #$受信者はABED-NEGO、#@Friendsは( 'Me'、 'あなたの')、#%敵は(loathsome => ...、fearsome => ...)#プログラミングエラーの場合のコールバックテンプレート$ TEXT = $ TEMPLATE-> FILL_IN(壊れた=>コールバック、Broken_arg => $ ref、...); #制限付きパーミッション付きの安全なコンパートメントでプログラムフラグメントを評価する$ text = $ template-> fill_in(safe => $ constmment、...); #それを返す代わりに#印刷結果テキスト= $ template-> fill_in(output => * fileHandle、...); #さまざまなテンプレートファイルの構文で解析テンプレートの構文:$ text = $ template-> fill_in(区切り文字=> 、...); #reportualsの前に、$ text = $ template-> fill_in(prepend => q}を使用する前に、$ text => q {strict 'vars';}を使用する前に、デフォルトのdelimiters#prepdを使用するよりも*速い*です。 ; Text :: Template 'fill_in_string'を使用してください。 $ text = fill_in_string(要件: ・Perl


テキスト::テンプレート 関連ソフトウェア