Zidek / django-basic-apps

Automatically exported from code.google.com/p/django-basic-apps
0 stars 0 forks source link

Patch for passing extra params to the temples with the <inline /> tag #41

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I've modified a little the inlines parser.py to allow the option to use an
aditional "extraparams" in the <inline> tag to give some extra parameters
to the template context.

For example, I'm using django-thumbnails (from djangothumbnails.com) and I
use on my site:

 <inline type="dbmedia.image" id="1"  
extraparams="thumbnailsize:300x300,useframe:1" />

Patch attached.

Original issue reported on code.google.com by juan...@gmail.com on 24 Jun 2009 at 9:13

GoogleCodeExporter commented 9 years ago
Ups, sorry, I reported it as defect which obviously is not.

Original comment by juan...@gmail.com on 24 Jun 2009 at 9:14

GoogleCodeExporter commented 9 years ago
What disaster, I left the debug prints and pprints enabled, I'm attached the 
cleaned
version of the patch

Original comment by juan...@gmail.com on 24 Jun 2009 at 9:52

Attachments: