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.
簡単に言えば、デバッグと発見の手段として、genshi テンプレートの範囲内にあるすべての変数を出力したいと思います。それを行う方法はありますか?
標準のPython関数locals()(dictを返す)が機能します。私はGenshi0.5.1を使用していますが、ご覧のとおり、すべてがに含まれているようです__data__。
__data__
${repr(locals())}