Re: YUI tags

2007-07-05 Thread Todd O'Bryan

Thanks! I'd actually thought about how to do this, but it's nice to have
real code...

On Thu, 2007-07-05 at 13:50 -0500, Jacob Kaplan-Moss wrote:
> Hi Todd --
> 
> You might find writing those "nested" template tags a bit tricky;
> there's a not-very-well-documented method you'll need to pull out the
> sub-tags.
> 
> I've got an example of how you can do these types of nested tags here:
> http://www.djangosnippets.org/snippets/300/
> 
> Good luck!
> 
> Jacob



--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: YUI tags

2007-07-05 Thread Jacob Kaplan-Moss

Hi Todd --

You might find writing those "nested" template tags a bit tricky;
there's a not-very-well-documented method you'll need to pull out the
sub-tags.

I've got an example of how you can do these types of nested tags here:
http://www.djangosnippets.org/snippets/300/

Good luck!

Jacob

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: YUI tags

2007-07-04 Thread Michael Trier

I like it.  Good luck to you and keep us posted on how you progress.

Michael

On 7/4/07, Todd O'Bryan <[EMAIL PROTECTED]> wrote:
>
> I just looked at YUI yesterday and am pretty impressed. What I'm not
> impressed by is how complicated it is to write the markup in HTML for
> things like menus so that they'll work in non-JavaScript environments.
>
> I'm considering trying to develop a yuitags app that would just consist
> of template tags that compartmentalize YUI widgets in a form that would
> make them easy to enter in a Django template. For example, to do a
> menubar, you'd do something like
>
> {% menubar %}
> {% menu %}
> {% menuitem %}Menu One{% endmenuitem %}
> {% menuitem %}Item One.1{% endmenuitem %}
> {% menuitem %}Item One.2{% endmenuitem %}
> {% endmenu %}
> {% menu %}
> etc.
> {% endmenu %}
> {% endmenubar %}
>
> The other thing is that you could include a
>
> {{ yui_links }}
>
> variable in the head section of your base template, and each tag would
> include the imports it would need to be displayed in the context so that
> they'd be loaded automatically.
>
> Does such a thing already exist? If not, is this something people see a
> use for? Any gotchas I'm missing that would make this impossible instead
> of just tricky?
>
> Thanks,
> Todd
>
>
> >
>

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---