jordanandree / middleman-api

A Middleman Extension that generates JSON and XML endpoints for template frontmatter
MIT License
18 stars 2 forks source link

compatible with MM Blog? #2

Closed stoplion closed 9 years ago

stoplion commented 11 years ago

Getting errors when I install this gem with MM blog.

jordanandree commented 11 years ago

can you post the error log? I havent tested this at all with MM Blog, so that would help getting it compatible. Thanks!

stoplion commented 11 years ago

When trying to start MM I'm getting a

Users/geoneo/Sites/Work/georgenorr.is.static/source/partials/_project_navigation.slim:3:in `block in   singletonclass': undefined method `previous_article' for nil:NilClass (NoMethodError)

Doesnt seem to like the current_article.previous_article

jordanandree commented 11 years ago

Just pushed some updates that works better with ignored files and and destination paths. If you could bundle middleman-api from this github repo and see if it works okay, then that would be awesome.

One thing that i should not in the readme is that the api extension should be activated in your config.rb after the blog extension is activated. The blog extension does stuff with ignored templates and such that the api extension needs to know about, so the load order is important.

jordanandree commented 9 years ago

closing since this extension has been rewritten. MM Blog should be tested against v0.2.0