1<?php
2
3/**
4 * Returns HTML string with script tag
5 * @param  string $filename
6 * @return string
7 */
8function tpl_js($filename)
9{
10	$filepath = DOKU_TPL . 'js' . DIRECTORY_SEPARATOR . $filename;
11	return "<script type=\"application/javascript\" src=\"{$filepath}\"></script>";
12}