You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

11 lines
251 B

<?php
function view($template, $data=[]) {
global $templates;
return $templates->render($template, $data);
}
// Adds slash if no path is in the URL
function normalize_url($url) {
return parse_url($url, PHP_URL_PATH) == '' ? $url.'/' : $url;
}