Html 如何在motor.js中设置基础模板?
我不想在项目中的每个视图上设置我的资产(CSS/JS、菜单等)。有没有办法设置一个基础模板,然后调用视图来填充它的主体 例如:Html 如何在motor.js中设置基础模板?,html,locomotivejs,Html,Locomotivejs,我不想在项目中的每个视图上设置我的资产(CSS/JS、菜单等)。有没有办法设置一个基础模板,然后调用视图来填充它的主体 例如: <!-- my base template --> <html> <head> <!-- my assets here --> </head> <body> <%= view.render() %> <!-- example
<!-- my base template -->
<html>
<head>
<!-- my assets here -->
</head>
<body>
<%= view.render() %> <!-- example of where I would render the views -->
</body>
</html>
我怎么能做到这一点呢?我已经看到了这一点,但还没有看到它是如何工作的。另一个选项是使用EJS partials