List Info

Thread: Re: Re: Possible alternative methods for "include"




Re: Re: Possible alternative methods for "include"
country flaguser name
United Kingdom
2008-02-08 09:21:32
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:foobar.com">email foobar.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:foobaz.com">email foobaz.com</a>
</span>

the result could turn out much like this:

<span class="vcard">
	<span class="fn">Foo</span>
  	<a class="email" href="mailto:foobaz.com">email foobaz.com</a>
</span>

Pretty easy on the mind I would say.


Thanks

Martin McEvoy

 

_______________________________________________
microformats-discuss mailing list
microformats-discussmicroformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss

Re: Re: Possible alternative methods for "include"
country flaguser name
United Kingdom
2008-02-09 07:55:52
On Fri, 2008-02-08 at 15:21 +0000, Martin McEvoy wrote:
> 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:foobar.com">email
> foobar.com</a>
> </span> 

The above example was not very clear was it?, so a proposal
can be found
here:

http://microformats.org/wiki/incl
ude-pattern-strawman#Use_a_Class_Create_method

Thanks

Martin McEvoy


_______________________________________________
microformats-discuss mailing list
microformats-discussmicroformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )