You can also do
<style>
{{include '../static/css/web2py.css'}}
{{include '../static/css/style.css'}}
</style>
LOAD does not work because it is designed to LOAD a action client-side, not
serverside.
On Saturday, 17 November 2012 00:18:35 UTC-6, encompass wrote:
>
> Never thought about doing it that way.
> Better to use the python way in this case I suppose. :)
> BR,
> Jason
>
> On Saturday, November 17, 2012 12:22:52 AM UTC+2, Massimo Di Pierro wrote:
>>
>> <style type="text/css">
>> {{=open(os.path.join(request.folder,'static','css/web2py.css')).read()}}
>> {{=open(os.path.join(request.folder,'static','css/style.css')).read()}}
>> </style>
>>
>> On Friday, 16 November 2012 13:47:10 UTC-6, encompass wrote:
>>>
>>> I want to include the text from static in my email templates. I
>>> currently have this, but it doesn't work:
>>> <style type="text/css">
>>> {{=LOAD(url=URL('static', 'css/web2py.css', scheme='http'),ajax=False)}}
>>> {{=LOAD(url=URL('static', 'css/style.css', scheme='http'),ajax=False)}}
>>> </style>
>>> But this doesn't work as I can't use js in email messages.
>>> BR,
>>> Jason Brower
>>>
>>>
--