root/galaxy-central/lib/galaxy/util/template.py
| リビジョン 2, 273 bytes (コミッタ: hatakeyama, 15 年 前) |
|---|
| 行番号 | |
|---|---|
| 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
を参照してください。
![(trac.ini の [header_logo] セクションを設定してください)](/bh10.10/chrome/site/your_project_logo.png)