ウェブページにはjavascriptファイルを含める必要があります。Jade:javascriptファイルを含めるには
include /../scripts/jquery.timeago.js
が、私は結果として
<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>
を得る:私は次のように記述します。しかし、私は必要があります:
<script src="/Scripts/jquery.timeago.js" type="text/javascript"></script>
どのようにするには?
script(src="/Scripts/jquery.timeago.js")
[include includes](https://pugjs.org/language/includes.html)は、1つのpugファイルの内容を別のものに含めるために使用されます。 'script'はあなたが探しているものです。 – TheCrazyProgrammer