On May 25, 10:40 pm, Wyatt Baldwin <[email protected]>
wrote:
> The stuff inside ${} is plain Python. Your example will work if you change
> it to this:
>
> ${h.stylesheet_link(url('/css/main.css'))}
>

That is just one of those "Doh!" moments. Obvious, but I didn't see
it, thanks.

> > Also my js files are separate from the template so the url function
> > isn't available.
>
> If you set the prefix as a JS var in your template before the <script>s that
> load the rest of your JS files, you will be able to access it in your other
> scripts.
>

ahh yes, as you described earlier.

>
> You really should use the `url` function as described above. It will make
> your life much easier
>

Agreed, code changes on the way ...

Thanks.

--
Geoff

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to