Re: [PHPTAL] PHP content in templates

2012-05-22 Thread Levi Stanley
I don't think this behavior was in the older versions, you can download the older version and check it out. On Mon, May 21, 2012 at 4:18 AM, Robert Goldsmith rgoldsm...@names.co.ukwrote: Hello :) I was actually surprised that the behaviour existed in the first place simply because it

Re: [PHPTAL] PHP content in templates

2012-05-18 Thread Levi Stanley
So, you are trying to subtly suggest having a strict mode which uses a pre-filter to turn this behavior off? However, I like the current behavior because it allows me to slowly migrate old pages over to phptal. Also, it allows me to write a pre-filter that allows me to see what code hasn't been

Re: [PHPTAL] Paths to resources in templates

2011-11-04 Thread Levi Stanley
hope this has helped you out. Best regards, Levi Stanley On 11/03/11 04:00, romtek wrote: Hi, The nature of the development approach that I use is that paths to resources (images, CSS and JS files, etc.) relative to the template files during design time are different from those during run time

Re: [PHPTAL] Paths to resources in templates

2011-11-04 Thread Levi Stanley
. Best regards, Levi Stanley On Fri, Nov 4, 2011 at 9:26 AM, adobebi...@gmail.com adobebi...@gmail.comwrote: Hi, I have been thinking for months on this issue and tried several things, One is within codeigniter, creating an assetmanager controller class and use its action to navigate the design

[PHPTAL] Object causing a parse error

2011-08-01 Thread Levi Stanley
, Levi Stanley ___ PHPTAL mailing list PHPTAL@lists.motion-twin.com http://lists.motion-twin.com/mailman/listinfo/phptal

Fwd: Re: [PHPTAL] Object causing a parse error

2011-08-01 Thread Levi Stanley
/ Best regards, Levi Stanley ___ PHPTAL mailing list PHPTAL@lists.motion-twin.com http://lists.motion-twin.com/mailman/listinfo/phptal ___ PHPTAL mailing list PHPTAL@lists.motion-twin.com http

Re: [PHPTAL] How slots are better then macro?

2011-07-11 Thread Levi Stanley
On 07/11/11 13:33, Darrell Hamilton wrote: We use slots as a way of implementing decorators in our templates. Often our designers use a similar wrapper of HTML around various pieces of content and we want them to be reusable. There's actually two separate ways we could accomplish this feat.

Re: [PHPTAL] How slots are better then macro?

2011-07-11 Thread Levi Stanley
Sorry about that, just like this example alot. On 07/11/11 21:48, Levi Stanley wrote: On 07/11/11 13:33, Darrell Hamilton wrote: We use slots as a way of implementing decorators in our templates. Often our designers use a similar wrapper of HTML around various pieces of content and we want

Re: [PHPTAL] issue with variable defined in a full page macro

2011-05-08 Thread Levi Stanley
I think Fernando was trying to instead of defining people everytime, he wanted to define it in the macro he was using everywhere so he wouldn't have to define in every presentation view. He says he is able to do it in ZPT. However, I have never used ZPT, but thought it was a interesting way to

Re: [PHPTAL] PHPTAL and ZTal

2011-04-19 Thread Levi Stanley
On 04/14/11 08:42, Robert Goldsmith wrote: I am pretty new PHPTAL, and Zend Framework, but was happy to run accross ZTal. How do you get ZTal to use hyphenated view names (e.g. product-description.xhtml) instead of the CamelCasing it currently does? Ztal doesn't use hyphenated view names.

[PHPTAL] PreFilter - filterDOM

2010-10-14 Thread Levi Stanley
the same, am I missing something? Best regards, Levi Stanley ___ PHPTAL mailing list PHPTAL@lists.motion-twin.com http://lists.motion-twin.com/mailman/listinfo/phptal

Re: [PHPTAL] PreFilter - filterDOM

2010-10-14 Thread Levi Stanley
($url,0,1) == '/')?substr($url,1):$url); } print [[[ $url ]]]br/; $node-setValueEscaped($url); } else { $this-filterDOM($node); } } } } } On 10/14/10 12:18, Kornel Lesiński wrote: On 14 Oct 2010, at 17:08, Levi Stanley wrote: I am migrating over to using PreFilter and using the DOM to manipulate

Re: [PHPTAL] phptal.org vanished

2010-06-13 Thread Levi Stanley
It's up now. On 06/12/2010 11:40 PM, s...@prrbl.org wrote: Is this normal ? We can not reach phptal.org anymore. - whois phptal.org Name Server:NS6.GANDI.NET Name Server:NS.PORNEL.NET Name Server:NS2.SBLAM.COM - dig @NS6.GANDI.NET phptal.org ; DiG

[PHPTAL] tal:attributes question - reducing this statement

2010-03-17 Thread Levi Stanley
label tal:attributes=class php: (isset(error) error['first_name'])?'labelbox error':'labelbox'First Name:/label Is there a better way to do this? ___ PHPTAL mailing list PHPTAL@lists.motion-twin.com http://lists.motion-twin.com/mailman/listinfo/phptal

Re: [PHPTAL] Need confirmation about the pipe syntax inside tal:attributes

2009-08-07 Thread Levi Stanley
input name=firstname tal:attributes=value firstname | nothing/ Guillaume Lecanu wrote: Hi everybody, I use this syntax : input name=firstname value= tal:attributes=value firstname| / Note the pipe character at the end of the expression. So, if the firstname value exists, this show it and

[PHPTAL] [Fwd: Weird scan results]

2009-07-23 Thread Levi Stanley
---BeginMessage--- Hi Been playing with phptal_lint, and noticed something odd. example code 1: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html head /head body div tal:content=example: test/div /body /html Output:

[PHPTAL] [patch] for phptal_lint.php

2009-07-19 Thread Levi Stanley
Patch Adds: + I added force parsing every time the script is ran. + Added an include option, so you are now able to include your modifiers, prefilters, etc. + Now using getopt Here are the options: PHPTAL Lint 1.0 (PHPTAL 1_1_16) Usage: phptal_lint.php [-e extensions] [-i php_file_or_directory]

Re: [PHPTAL] Template folder problem

2009-03-27 Thread Levi Stanley
Well, while designing my framework, I wanted it to be able to change designs pretty easily, but also allow fast transition from design to production. So what I ended up doing is using a prefilter to change the html to point where my images were for that design, so the only hard line you have to

Re: [PHPTAL] Feature Request: Unregister a prefix

2009-03-13 Thread Levi Stanley
zend_number: ? Christian Welzel wrote: Am Montag 09 März 2009 schrieb Kornel Lesiński: Perhaps default implementation of number: should be improved instead? What changes do you need? I want to use Zend_Locale to format the given number according to the locale of the user. I dont

Re: [PHPTAL] default macro file

2009-01-27 Thread Levi Stanley
Sweet, that is even better. Best regards, Levi Stanley Kornel Lesiński wrote: On 26-01-2009 at 19:53:39 Levi Stanley l...@eneservices.com wrote: admirau: class MyTemplateFramework extends PHPTAL { private $default_macro_file; public function setDefaultFile($default_macro_file

Re: [PHPTAL] PHP and scope issues... they're killing me!

2009-01-02 Thread Levi Stanley
regards, Levi Stanley Alister Cameron wrote: Sorry. Bit silly of me. I discovered after hitting send that I had, in fact, missed something and the PHP variables we're not properly set for passing to PHPTAL. False alarm, folks!! Thanks, -Alister 2009/1/2 Alister Cameron alister.came

Re: [PHPTAL] Casing with tal:content values question

2009-01-02 Thread Levi Stanley
Try this: ]] $ more test.php ?php include_once('PHPTAL.php'); $template = new PHPTAL('test.xml'); $template-set('userInfo', 'Default userInfo info'); try { print $template-execute(); } catch(Exception $e){ print Error:: {$e-getMessage()}\n; } ? ]] $ more test.xml div id=userInfo

Re: [PHPTAL] How to disable autoquote ?

2008-10-13 Thread Levi Stanley
script language=javascript ![CDATA[ javascript blah ]] /script Guillaume Lecanu wrote: Hi, I want to write a dynamic JS content into the script/scriptbalise. A simple : alert(Hello World) But the problem is PHPTAL replace all quotes (simple or double quote) by HTML entities. How can I

Re: [PHPTAL] easy question about tal:attributes

2008-09-07 Thread Levi Stanley
Hi David: You did not pass the left and right to the template. So here is a quick write up. php code: ?php require_once 'PHPTAL.php'; $template = new PHPTAL('templates/template.tmpl'); class links { public $href; public $text; function links($href, $text) { $this-href =

[PHPTAL] Radio Buttons selection box

2008-06-28 Thread Levi Stanley
Was wondering if there was a better way to deal with radio buttons selection box in phptal. One way, is make an array, and pass it the choices to the template. Or you can do it like the method below, however I was wondering if there is a better way than doing it like this? option value=Choose

Fwd: [PHPTAL] Using PHPTAL with index.php?page=... thing

2008-01-21 Thread Levi Stanley
Sorry, forgot to change the email, I was sending this from. Read below: -- Forwarded message -- Date: Jan 21, 2008 5:08 AM Subject: Re: [PHPTAL] Using PHPTAL with index.php?page=... thing To: Template Attribute Language for PHP phptal@lists.motion-twin.com Hmm, kind of sounds

Re: [PHPTAL] JavaScript arrays using PHPTAL

2008-01-21 Thread Levi Stanley
You can do something like this: script language=javascript tal:content=structure your-javascript-here-or-the-variable /script Best regards, Levi On Jan 21, 2008 5:43 AM, Anton Andrievskij [EMAIL PROTECTED] wrote: Hi. I have to fill JavaScript array using PHPTAL attributes. Whether I can

Re: [PHPTAL] Using PHPTAL with index.php?page=... thing

2008-01-21 Thread Levi Stanley
(?) Anton On Jan 21, 2008 12:13 PM, Levi Stanley [EMAIL PROTECTED] wrote: Sorry, forgot to change the email, I was sending this from. Read below: -- Forwarded message -- Date: Jan 21, 2008 5:08 AM Subject: Re: [PHPTAL] Using PHPTAL with index.php