以下の内容はhttps://yattom.hatenablog.com/entry/20061108/p2より取得しました。


テンプレートの動的な選択

@expose()
def foo(self):
  ...
  if s==1:
    template = '.templates.success'
  else:
    template = '.templates.failure'

  return dict(tg_template=template,....)
@expose(template="templates.ok")
def foo(self):
    if (not s):
           return(tg_template="templates.notOK",other="bar"
    return(other="bar")



以上の内容はhttps://yattom.hatenablog.com/entry/20061108/p2より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14