[Pmwiki-users] Skins

Nils Knappmeier nk
Tue Feb 24 12:17:02 CST 2004


Patrick R. Michaud wrote:

>On Tue, Feb 24, 2004 at 03:01:18PM +0100, Thomas -Balu- Walter wrote:
>  
>
>>Why add more special things to know if PHP code can handle that nicely?
>>
>>    
>>
>>>><!--wiki:Foo.PageName--> substitutes the contents of Foo.PageName
>>>>at that point.  The page name can be parameterized as well,
>>>>thus <!--wiki:$Group.PageName--> substitutes PageName from the
>>>>current group. <!--file:filename.php--> includes the contents of
>>>>filename.php
>>>>        
>>>>
>>>>Let me know if you think this is an easier way to specify layouts.
>>>>        
>>>>
>>>Yes, much easier, particularly for non-programmer folk.
>>>      
>>>
>>But it will restrict programmers.
>>    
>>
>
>It's not that I can't/won't make it work as a PHP file, it's that I 
>think that encoding skin templates as PHP files will be relatively ugly
>far more difficult to read, which will discourage many non-PHP folks.
>  
>
I'm not sure about the capabilities of PHP, but isn't there something 
like an
evaluate()-function, that takes a string and treats it like if it were 
PHP-code?
If so, it would be relatively easy to add a <!--php: ... --> tag to the 
template engine,
that just evaluates the contained code.
That would meet the needs of both designers and programmers.

Nils




More information about the pmwiki-users mailing list