root/galaxy-central/lib/galaxy/util/template.py @ 2

リビジョン 2, 273 bytes (コミッタ: hatakeyama, 14 年 前)

import galaxy-central

行番号 
1import pkg_resources
2pkg_resources.require( "Cheetah" )
3
4from Cheetah.Template import Template
5
6def 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 を参照してください。