Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Core rewrite #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Core rewrite #3

wants to merge 2 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Jun 8, 2012

This is a core rewrite that I worked on today. It's quite a significant departure from the current design, so I completely understand if you'd rather not merge this. The changes include:

  • post.js, posts.js, and render.js have been consolidated into index.js.
  • The logic for rendering posts has been consolidated into Blogit#getPost, as it is entirely synchronous.
  • The API is now exposed through a Blogit constructor that accepts an options object.
  • A simple blogit executable replaces blog.js. The logic for creating the HTTP server has been moved into Blogit#createBlog.
  • The async dependency has been replaced with async-it, which supports parallel mapping (async's implementation is serial).

No new features have been added yet.

* @param {Object} [options = {}] Specifies optional blog settings.
*/
var Blogit = module.exports = function Blogit(options) {
options = Object(options)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting use of Object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant