Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
poet
Advanced tools
Changelog
v3.0.0
pug
instead of jade
for default templating.Readme
Poet is a lightweight blogging library. Renders markdown, pug, or any templated files as posts, tag it up with metadata that's passed into any view engine you want, instant pagination, tag and category views.
If using Express 3, use v1.1.0. For sites using Express 4+, use v2.0.0+.
Full documentation for Poet can be found at http://jsantell.github.io/poet
These sites are using Poet for their blogging, check them out! Ping me, or send a PR if you too are using Poet in the wild.
npm install poet
Include Poet in your package.json and add it to your app, passing in your Express app and options. Call the init
method and routes will be set up!
var
express = require('express'),
app = express(),
Poet = require('poet');
var poet = Poet(app, {
posts: './_posts/',
postsPerPage: 5,
metaFormat: 'json'
});
poet.init().then(function () {
// ready to go!
});
/* set up the rest of the express app */
To run tests, run npm test
from the project root to run the Mocha tests. Generate documentation by updating the docs.md
and running make
.
Please read the CONTRIBUTING.md for guides on contributions.
MIT License, Copyright (c) 2012 Jordan Santell
Many thanks :blue_heart: to Brittany Fedor for the sweet art!
FAQs
quick and easy blog module
The npm package poet receives a total of 17 weekly downloads. As such, poet popularity was classified as not popular.
We found that poet demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.