Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
How to use HTML5 in TG2.1?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Raj  
View profile  
 More options Sep 8 2010, 9:49 pm
From: Raj <www.raj....@gmail.com>
Date: Wed, 8 Sep 2010 18:49:40 -0700 (PDT)
Local: Wed, Sep 8 2010 9:49 pm
Subject: How to use HTML5 in TG2.1?
Hi,
I wish to experiment with the HTML5 microdata. Genshi is not allowing
microdata attributes since it is not well formed when using the
default document type.
Does anyone have a solution to use html5 in TG2.1
Thanks
Raj

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Daniel Falk  
View profile  
 More options Sep 9 2010, 11:43 am
From: Daniel Falk <danielfal...@gmail.com>
Date: Thu, 9 Sep 2010 11:43:57 -0400
Local: Thurs, Sep 9 2010 11:43 am
Subject: Re: [TurboGears] How to use HTML5 in TG2.1?

On Wed, Sep 8, 2010 at 9:49 PM, Raj <www.raj....@gmail.com> wrote:
> Hi,
> I wish to experiment with the HTML5 microdata. Genshi is not allowing
> microdata attributes since it is not well formed when using the
> default document type.
> Does anyone have a solution to use html5 in TG2.1
> Thanks
> Raj

I have not worked with HTML 5 yet, but your problem could be that you're
trying to use HTML in your template, but you should be using XHTML.  Genshi
requires XML, and HTML 5 is not based upon XML.  If you want to use HTML 5
features, try using XHTML 5 (
http://www.w3.org/TR/html5/the-xhtml-syntax.html ) in your template.

According to the Genshi tutorial (
http://genshi.edgewall.org/wiki/GenshiTutorial ), just because you're using
XHTML in your template does not mean that your template has to generate
XHTML.  I would assume the same applies for 5.

You could also use Mako, which is fully supported as an alternate template
engine and is not XML based at all.  It's faster too.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »