I need to include a javascript file to webpage. I write the following:
include /../scripts/jquery.timeago.js
but I get
<script>/*
* timeago: a jQuery plugin, version: 0.8.2 (2010-02-16)
* @requires jQuery v1.2.3 or later
*
* Timeago is a jQuery plugin that makes it easy to support automatically
* updating fuzzy timestamps (e.g. "4 minutes ago" or "about 1 day ago").
*
* For usage and examples, visit:
* http://timeago.yarp.com/
*
* Licensed under the MIT:
* http://www.opensource.org/licenses/mit-license.php
*
* Copyright (c) 2008-2010, Ryan McGeary (ryanonjavascript -[at]- mcgeary [*dot*] org)
*/
(function($) {
....
</script>
as result. But I need:
<script src="/Scripts/jquery.timeago.js" type="text/javascript"></script>
How to do it?
includes
is used for including the content of one pug file into another.script
is what you're looking for. – Trepang