<?php
/**
 * @package    jelix
 * @subpackage jtpl_plugin
 *
 * @author     Laurent Jouanneau
 * @copyright  2005-2008 Laurent Jouanneau
 *
 * @see        http://www.jelix.org
 * @licence    GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html
 *
 * @param mixed $tpl
 * @param mixed $selector
 * @param mixed $params
 * @param mixed $escape
 */

/**
 * function plugin :  write the url corresponding to the given jelix action.
 *
 * @param jTpl   $tpl      template engine
 * @param string $selector selector action
 * @param array  $params   parameters for the url
 * @param bool   $escape   if true, then escape the string for xml
 */
function jtpl_function_xml_jurl($tpl, $selector, $params = array(), $escape = true)
{
    echo jUrl::get($selector, $params, ($escape ? 1 : 0));
}
