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.
現在、静的ページを動的ページにしようとしています。顧客は、URL の末尾に .html がないように URL を変更したくありません。したがって、例として、現在の静的ページは/foo/bar.html私のパブリック フォルダーにあり、問題ありません。私は簡単にそれを作ることができます/foo/bar.
/foo/bar.html
/foo/bar
現在のコード:map.connect('foo', '/foo/bar.html',controller=controller , action='foo')
map.connect('foo', '/foo/bar.html',controller=controller , action='foo')
{.format} を追加して元のファイルの名前を変更するだけでよいことがわかりました。これは、pylon が最初に静的ページにルートするためです。