Nutritious Potato Munchies
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    dilatedpublic

    dilated

    Dilated is a blog written for node.js. See a live example at dilated.cc. It's modeled after Kroc Camen's amazing blog. (It more or less strives to be a faithful port of it.) It's very lightweight: articles are stored as flat files (in markdown format with JSON metadata). It polls the filesystem to build an index of posts and check for new/deleted ones.

    dilated

    This blog was specifically written for myself. The markup and design are very specific to my own site. The markup follows the same philosophy of camendesign: there are no @id's or @classes used purely for the sake of CSS - instead, selectors are used to their full potential. The css does not cater to terrible browsers. etc.

    The code is somewhat narrow in what it was designed for. If you want to use this blog yourself, be prepared to make a few changes. This is a project of mine that will remain an indefinite work in progress.

    Usage

    # Start and background dilated:
    $ dilated -b

    As a module

    Regular Usage

    var dilated = require('dilated');
     
    var conf = dilated.config.readConfig()
      , app = dilated.createServer(conf);
     
    app.listen();

    Hookable Version

    var dilated = require('dilated');
     
    var conf = dilated.config.readConfig()
      , app = dilated.createServer(conf);
     
    app.server.on('request', function(req, res) {
      // ...
      return app.handle(req, res);
    });
     
    app.server.listen(app.conf.port, app.conf.hostname);

    Mountable Version

    var dilated = require('dilated');
     
    var conf = dilated.config.readConfig()
      , app;
     
    conf.webRoot = '/blog';
     
    app = dilated.createServer(conf);
     
    realApp.use('/blog', app);

    Contribution and License Agreement

    If you contribute code to this project, you are implicitly allowing your code to be distributed under the MIT license. You are also implicitly verifying that all code is your original work. </legalese>

    License

    Copyright (c) 2011-2014, Christopher Jeffrey. (MIT License)

    See LICENSE for more info.

    Keywords

    none

    install

    npm i dilated

    Downloadsweekly downloads

    4

    version

    0.0.2

    license

    none

    last publish

    collaborators

    • avatar