GithubHelp home page GithubHelp logo

Example ? about bloggy HOT 3 CLOSED

Offirmo avatar Offirmo commented on June 12, 2024
Example ?

from bloggy.

Comments (3)

marcells avatar marcells commented on June 12, 2024

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.

marcells avatar marcells commented on June 12, 2024

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.

Offirmo avatar Offirmo commented on June 12, 2024

Ok. Thanks.

from bloggy.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.