[PHPTAL] Does PHPTAL supports or tolerate Microdata?

2010-10-08 Thread hosemaria
Hey 

I am planning to integrate some semanticweb technology. Does PHPTAL supports
or tolerate Microdata?

http://www.google.com/support/webmasters/bin/answer.py?answer=146862


Greetings
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal


[PHPTAL] PHPTAL and JQUERY tmpl

2010-09-17 Thread hosemaria
Maybe it is time to lobby for PHPTAL syntax for JQUERY tmpl? 
John Resig (author of Jquery) are planning to integrate some template
functionality inside JQuery core.

http://forum.jquery.com/topic/jquery-templates-proposal#1473700751961

More on tmpl:

http://github.com/jquery/jquery-tmpl

http://github.com/nje/jquery-tmpl
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal


[PHPTAL] XHTML without tal tags

2009-12-03 Thread hosemaria
Is there a method that throws pure XHTML without tal tags?
I mean when there is ex. template like this:
trth Name/thth City/th
tal:block id=items tal:repeat=item list
trtd class=name${item/name} /tdtd class=city${item/city} /=
td/tr
tal:block
after ex. function
$tpl-new_execute();
result is like this:
trth Name/thth City/th
trtd class=name /tdtd class=city /td/tr
If not exists is there a simple way to add it?
Greetings

___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal


[PHPTAL] doctype and ${lang} variable

2009-09-24 Thread hosemaria
Hi

How to change language in doctype?

!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;

When I use variable ${lang} from phptal

 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//${lang}
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;

the Parse error appears

Greetings
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal


[PHPTAL] ajax and phptal

2009-09-18 Thread hosemaria
Hi 

I am working on ajax php website. Ajax makes using phptal more complicated.

My approach is to divide single page to several php files and every time at
single page i create new object of $tpl. It means that I have to use several
$tpl-execute() at the first page load. I think it is not optimal.

My question is whether there is most efective way to use phptal and ajax?


Greetings
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal


[PHPTAL] Minification of HTML XHTML

2009-08-13 Thread hosemaria
I keep my templates in .tpl files with indentation

Ex:
tal:block metal:define-macro=notification
?div class=ui-widget
??div tal:condition=exists: error id=error class=ui-state-error 
ui-corner-all
???p tal:repeat=err error 
span class=ui-icon ui-icon-alert style=float: left; margin-right: 
.3em;/span
${err}/p
??/div
?/div
?div class=ui-widget
??p tal:condition=exists: msg id=msg class=ui-state-highlight 
ui-corner-all
???span class=ui-icon ui-icon-info style=float: left; margin-right: 
.3em;/span
???${msg}
??/p
?/div
/tal:block

I noticed that all indentation are thrown to the browser and looking for the 
XHTML source of page there are unnecessary 'tabs' in a front of XHTML.
Is there option/instruction to throw XHTML without such a prefixes like 'tabs'. 
XHTML will load faster.

Greetings


___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal