Thursday, July 25, 2013

Php Custom Tag Library

Right now I'm leaning towards the Custom Tags library. One of the best features is support for buried or nested tags like the code block below:
<?php
$current_dir 
dirname(__FILE__) . DIRECTORY_SEPARATOR;
require_once 
$current_dir 'customtags.php'; 

$ct = new CustomTags(array(
    
'parse_on_shutdown' => true,
    
'tag_directory' => $current_dir 'tags' DIRECTORY_SEPARATOR,
    
'sniff_for_buried_tags' => true 

)); 
?> 

<ct:header example_name="Simple Example">Going Well?</ct:header>

Download php tag library from here
or go to
https://github.com/buggedcom/PHP-Custom-Tags

No comments:

Post a Comment