Can someone help me out with this. Is this possible?
I have created a simple custom tag that replace the tag with a
javascript.
My tag look like this {{ " "|putMap:".................."}}. It takes
only argument and will replace the tag with GoogleMapAPI.
------------------------------------------------------------------
from django import template
register = template.Library()
def putMap(value, arg):
..........................................
..........................................
..........................................
..........................................
..........................................
return '''<script type="javascript">...........................</
script>'''
sayHi.is_safe=True;
register.filter('putMap', putMap)
------------------------------------------------------------------
The problem is this. I want uses to input this tag in a <textarea>. My
result of my first attempt tells me that if I put this tag in
<textarea> it will just be a normal text string and tag function will
not activate.
So is it possible to put a custom tag in a textarea,
save the text string to database,
and when I retrieve this string later and the
tag will still work?
--
You received this message because you are subscribed to the Google Groups
"Django users" 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/django-users?hl=en.