On 10 Dec 2007, at 3:55 pm, Alex Dong wrote:

>
> Hello everyone,
>
> I'm wondering are there anyone who is working on a django version of
> the AssetPackager? I found it's a pretty cool performance booster with
> little work required from the developer side. Definitely a tool for
> perfectionist. :-)
>
> Here is the url of the ruby version:  http://synthesis.sbecker.net/ 
> pages/asset_packager
>
> Ideally, here is all we need to put into the django template file.
> <% javascript_include_merged "/static/js" %>
> <% stylesheet_include_merged "/static/css" %>
>
> Ideally, during development cycle, this custom tag will render out the
> list of javascript/stylesheet files without doing any merge. But in
> the production environemnt, DEBUG=False, it should generate the  
> merged/
> compressed files on the fly with the correct svn number associate with
> it.

If there's a python library for compressing javascript files (which I  
suspect there is) it shouldn't be too difficult to make your own  
templatetag to do this.

Thanks,

Dave

-- 
David Reynolds
[EMAIL PROTECTED]



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to