Are you saying you're trying to use the URL function in a static CSS file? That's not possible. The URL function can only be used in web2py code -- in a model, controller, view, or imported Python module. Static files are, well, static -- they are served as is and not processed by the framework.
If /appname/static/font_folder works, why not just use that in the CSS file? Anthony On Tuesday, November 29, 2011 10:53:12 PM UTC-5, monotasker wrote: > > I'm trying to use an embedded font referenced in a stylesheet. The only > url that seems to work in the @font-face declaration (in my css file) is > one that begins with the appname: /[appname]/static/[font folder]. It > seems, though, like I can't generate the URL programmatically (with the URL > helper) in the css file. So is there a relative address that will work? > > It just occurred to me that the problem might be my use of the less.js css > processing script. Could the URL helper not be working because it conflicts > somehow with less.js? >