summaryrefslogtreecommitdiff
path: root/app/helpers.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers.php')
-rw-r--r--app/helpers.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/helpers.php b/app/helpers.php
index 2dcb38e8..d22a4869 100644
--- a/app/helpers.php
+++ b/app/helpers.php
@@ -2,6 +2,16 @@
namespace Helper;
+function js($filename)
+{
+ return '<script type="text/javascript" src="'.$filename.'?'.filemtime($filename).'"></script>';
+}
+
+function css($filename)
+{
+ return '<link rel="stylesheet" href="'.$filename.'?'.filemtime($filename).'" media="screen">';
+}
+
function template($name, array $args = array())
{
$tpl = new \Core\Template;