Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
フォームの名前空間を作成するにはどうすればよいですか:
<%namespace name="foo" module="foo.bar" />
デフォルトで私のプロジェクトのすべてのテンプレートで利用可能; したがって、各テンプレートが最初に上記の行を含める必要はなく、mako によって自動的に行われます。Templateおよびクラスのドキュメントを見てきましたが、TemplateLookupこれを行う簡単な方法はないようです。
Template
TemplateLookup