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

Reply via email to