function load_system_tags() { $path = get_ini_option('compiler.ini', 'tags', 'path'); foreach ($path as $tagpath) { load_tags(LIMB_DIR . 'core/template/tags/' . $tagpath); } }
function load_project_tags() { $path = get_ini_option('config.ini', 'path', 'project_tags'); if (!$path) { return; } foreach ($path as $tagpath) { load_tags(PROJECT_DIR . 'core/template/tags/' . $tagpath); } }
} } /** * Create the tag_dictionary global variable */ $GLOBALS['tag_dictionary'] =& new tag_dictionary(); /** * Load some tag files */ $path = get_ini_option('compiler.ini', 'tags', 'path'); foreach ($path as $tagpath) { if (substr($tagpath, 0, 1) != '/') { load_tags(LIMB_DIR . 'core/template/tags/' . $tagpath); load_tags(PROJECT_DIR . 'core/template/tags/' . $tagpath); } else { load_tags($tagpath); } } /** * Compiles a template file. Uses the file scheme to location the source, * instantiates the code_writer and root_compiler_component (as the root) component then * instantiates the source_file_parser to parse the template. * Creates the initialize and render functions in the compiled template. * * @see root_compiler_component * @see code_writer * @see source_file_parser * @param string $ name of source template * @return void */ function compile_template_file($filename)