Comments (3)
Hi,
bloggy is just a low-level blog engine which crawls and indexes your blog entries. It is not dependent on any routing or templating engine. But you can easily write a plugin for bloggy or a library on top of bloggy. So everyone could reuse it.
You could take a look on my blog (http://mspi.es). I'm using express.js. In my controller methods, I've to write just a small amount of code. See the sample blow.
blogController.js:
[...]
allBlogEntries = function (req, res) {
var allEntries = engine.entries.all.orderedByDate();
engine.entries.load(allEntries, function () {
res.render('blogs.jade', {
entries: allEntries
});
});
},
[...]
blogs.jade:
extends layout
block content
each entry in entries
h1= entry.longTitle
p!= entry.content
hr
But you're right. I think, I'll add a small sample project, how bloggy can be integrated into an existing express.js infrastructure.
If you have further questions feel free to ask.
Kind regards
Marcell
from bloggy.
I added a code sample, how easy bloggy could be integrated into express.js.
https://github.com/marcells/bloggy/tree/master/samples
Kind regards
Marcell
from bloggy.
Ok. Thanks.
from bloggy.
Related Issues (4)
- More metadata ? HOT 2
- Error in samples/expressjs/app.js HOT 1
- Package is vulnerable to DoS HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bloggy.