also +1 on using data attributes. these are exactly what they are made for.
On Dec 30, 2012 11:19 AM, "Yuvi Panda" <[email protected]> wrote:

> On Sun, Dec 30, 2012 at 4:20 AM, Paul Selitskas <[email protected]
> >wrote:
>
> > Perhaps, you chose the wrong approach. Dig in HTML5 data attributes, for
> > examples. That's a better data interface between wikipage code and the
> > View. You can then access them with $(selector).data() method.
> >
>
> +1. I've been using this on a few gadgets I've been writing and it is
> wonderful. This was possible only recently, though - ever since HTML5 was
> enabled on WMF wikis.
>
> --
> Yuvi Panda T
> http://yuvi.in/blog
> _______________________________________________
> Wikitech-l mailing list
> [email protected]
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>
_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to