[uf-discuss] Re: Possible alternative methods for "include"
Martin McEvoy
info at weborganics.co.uk
Fri Feb 8 07:21:32 PST 2008
Hello Toby
On Fri, 2008-02-08 at 10:58 +0000, Toby A Inkster wrote:
> Such that this:
>
> <p class="#foo bar #baz">
> x
> </p>
>
> is considered equivalent to the following using current existing
> include-
> pattern:
>
> <p class="bar">
> <a class="include" href="#foo"></a>
> x
> <a class="include" href="#baz"></a>
> </p>
you know instead of trying to "mimic" the current include pattern or
"stuffing" a class try something new and a bit more "microformaty"...
eg: we could use class "data" as a container for what we want to
include.
<span class="vcard">
<span class="data">
<span class="fn">Foo</span>
</span>
<a class="email" href="mailto:foo at bar.com">email foo at bar.com</a>
</span>
then use an empty span with the class "include data" anywhere you would
like the "data" to appear....
<span class="vcard">
<span class="include data"></span>
<a class="email" href="mailto:foo at baz.com">email foo at baz.com</a>
</span>
the result could turn out much like this:
<span class="vcard">
<span class="fn">Foo</span>
<a class="email" href="mailto:foo at baz.com">email foo at baz.com</a>
</span>
Pretty easy on the mind I would say.
Thanks
Martin McEvoy
More information about the microformats-discuss
mailing list