我用的是塔架,想用聪明的css。在
我创建了一个控制器SassController
来处理.sass
请求,但是在config/routing.py
中,我不知道如何编写映射。在
我想要的是:
SassController#index
处理我试过了:
map.connect('/{path:.*}.sass', controller='sass', action='index')
但只找到:http://localhost:5000/xxx.sass
将被处理,而{
我现在该怎么办?在
路由代码使用正则表达式,因此您可以让它吃掉url中的所有内容,而不考虑斜杠。在
文档是here
它看起来像:
http://localhost:5000/blah/blah/something.sass
将使用path = blah/blah/something
调用{相关问题 更多 >
编程相关推荐