如何将Poet与Node,Express和EJS模板引擎一起使用 [英] How to use Poet with Node, Express and EJS template engine

查看:95
本文介绍了如何将Poet与Node,Express和EJS模板引擎一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现了 Poet 博客引擎,我想知道如何将其与EJS一起使用模板引擎.

I discovered the Poet blog engine and I would like to know how to use it with the EJS template engine.

即使有文档,我也不了解如何创建新帖子,以哪种格式显示以及如何在网页中呈现.

Also, even with the documentation, I don't understand how to create new post, in which format, and how it's rendered in the webpage.

推荐答案

有一个旧的PR (使用EJS而不是Jade的示例).这几乎与 examples/dir 中的示例一样,除了只是将express的视图引擎更改为ejs并改用ejs模板.

There's an old PR for examples using EJS instead of Jade. It's pretty much just like the examples in the examples/ dir, except just change express' view engine to ejs and use ejs templates instead.

这篇关于如何将Poet与Node,Express和EJS模板引擎一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆