【发布时间】:2015-03-20 16:29:00
【问题描述】:
我有一个关于从块中包含脚本的问题
来自 express-generator,
layout.jade
doctype html
html
head
title= title
link(rel='stylesheet', href='/stylesheets/style.css')
body
block content
include sidebar
script(src='/javascripts/jquery.js')
block bottomscripts
sidebar.jade
block bottomscripts
script(src='/javascripts/sidebar.js')
输出
<html>
<head>
<title>Express</title>
<link rel="stylesheet" href="/stylesheets/style.css">
</head>
<body>
<h1>Express</h1>
<p>Welcome to Express</p>
<script src="/javascripts/sidebar.js">
</script><script src="/javascripts/jquery.js"></script>
</body>
</html>
如何将 sidebar.js 移动到 jquery.js 下方?我需要在 sidebar.jade 内完成此操作
谢谢
【问题讨论】:
标签: node.js templates express pug