from my header file i can create template path easily for any .js file:
<?php $templateDirPath = get_bloginfo( 'template_directory' ) . '/'; ?>
<script type="text/javascript" src="<?php echo $templateDirPath; ?>js/scripts.js"></script>
but inside the 'scripts.js' file has some include .js files (same directory) like below:
include('js/mathUtils.js');
include('js/superfish.js');
include('js/switcher.js');
include('js/jquery.mousewhe
i just want to know is there any way to make template path for those included .js files inside 'scripts.js' file ? im newbie in wordpress.
found idea for below code but dnt know how to implement:
<script type="text/javascript">
var templateUrl = '<?= get_bloginfo( 'template_directory' ) . '/'; ?>';
</script>