Hi all!
Firstly, thank you much to developers of PHPTal. It's great!
We have a problem. We have a master page and a plugin simulation that
renders some another templates to called from. For example;
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
Hi Murat!
Just remove DOCTYPE info from second template, it should be only in main
template.
Cheers!
Szymek
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal
On 02-09-2009 at 10:39:11 Murat Çorlu muratco...@gmail.com wrote:
We have a problem. We have a master page and a plugin simulation that
renders some another templates to called from. For example;
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
I'm using a tal:block fill-slot=script to fill my macro template with
javascript code. However, all are converted to $lt;, which (seems
to) cause an error in a for loop
for (i=0; i myarray.lenght; i++) {
...
}
is converted to
for (i=0; i lt; myarray.lenght; i++) {
...
}
and I get an error
On 02-09-2009 at 14:12:39 Tjerk Meesters tjerk.meest...@gmail.com wrote:
Start your script with !-- and end with //--
You must *not* do that in XHTML, because in XHTML this may actually
comment out the script. XHTML doesn't have HTML's magic treatment of
script and comments in it.
--
On 02-09-2009 at 14:04:15 GRolf ger...@pictureparking.com wrote:
I'm using a tal:block fill-slot=script to fill my macro template with
javascript code. However, all are converted to $lt;, which (seems
to) cause an error in a for loop
for (i=0; i myarray.lenght; i++) {
...
}
is converted to
Macros are very well. It solved my problem. But I added something to
solution: We needed plugin-like system to handle what will assign by
template, not php. Plugin's html assigns will be sent when if only
plugin is used on template. So, finally I use a system like this:
div
sorry, I overlooked your answer here.
I was using PHPTal in default output mode, I was not specifying
anything. I'm now specifying
$phpTal-setOutputMode(PHPTAL::XHTML);
My templates have doctype xhtml 1.0
Adding the /*![CDATA[*/ … /*]]*/ works fine (adding !-- -- too, at
least in FF)
thx!
On 02-09-2009 at 15:45:11 Murat Çorlu muratco...@gmail.com wrote:
Macros are very well. It solved my problem. But I added something to
solution: We needed plugin-like system to handle what will assign by
template, not php. Plugin's html assigns will be sent when if only
plugin is used on
GRolf a écrit :
what solution would you propose then ?
IMHO javascript has nothing to do in (X)HTML,
use external file!
ie :
script type=text/javascript src=javascript.js/script
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
10 matches
Mail list logo