root/galaxy-central/lib/galaxy/util/template.py
@
2
リビジョン 2, 273 bytes (コミッタ: hatakeyama, 14 年 前) |
---|
Rev | 行番号 | |
---|---|---|
[2] | 1 | import pkg_resources |
2 | pkg_resources.require( "Cheetah" ) | |
3 | ||
4 | from Cheetah.Template import Template | |
5 | ||
6 | def fill_template( template_text, context=None, **kwargs ): | |
7 | if not context: | |
8 | context = kwargs | |
9 | return str( Template( source=template_text, searchList=[context] ) ) |
Note: リポジトリブラウザについてのヘルプは TracBrowser
を参照してください。