Giter VIP home page Giter VIP logo

Comments (11)

bhollis avatar bhollis commented on July 27, 2024

You have to add "builder" to your Gemfile. The blog template should have given you that, unless you didn't let it overwrite your Gemfile.

from middleman-blog.

hectorsq avatar hectorsq commented on July 27, 2024

Thanks. Added builder to my Gemfile and now it works. I make this mistake over and over.

However, browsing the source code I found no reference to builder, neither in https://github.com/middleman/middleman-blog/blob/master/Gemfile nor in https://github.com/middleman/middleman-blog/blob/master/lib/middleman-blog/template/shared/Gemfile.tt

from middleman-blog.

bhollis avatar bhollis commented on July 27, 2024

The problem is you get a feed.xml.builder template, which is built using builder.

from middleman-blog.

tdreyno avatar tdreyno commented on July 27, 2024

Ah, we need to add builder to the blog template Gemfile then.

from middleman-blog.

bhollis avatar bhollis commented on July 27, 2024

It should already be there. I think his problem was he already had a
gemfile and didn't let the template overwrite it.

-Ben

Sent from my phone

On Jun 11, 2012, at 9:30 AM, Thomas Reynolds
[email protected]
wrote:

Ah, we need to add builder to the blog template Gemfile then.


Reply to this email directly or view it on GitHub:
#51 (comment)

from middleman-blog.

hectorsq avatar hectorsq commented on July 27, 2024

I've tested again.

$ middleman init . --template=blog
      create  .gitignore
      create  config.rb
       exist  source
      create  source/2012-01-01-example-article.html.markdown
      create  source/calendar.html.erb
      create  source/feed.xml.builder
      create  source/index.html.erb
      create  source/layout.erb
      create  source/tag.html.erb
       exist  source/stylesheets
       exist  source/javascripts
       exist  source/images

I was never prompted for confirmation to overwrite anything.
Could not find any reference to builder in middleman-blog source code.

I agree with tdreyno, but I have not enough expertise to modify the source code and submit a pull request.

Forgive me if I do not sound too kind, english is not my native language.

from middleman-blog.

tdreyno avatar tdreyno commented on July 27, 2024

Thanks @hectorsq

from middleman-blog.

bhollis avatar bhollis commented on July 27, 2024

That's really weird. All templates should generate a Gemfile by default...

from middleman-blog.

bhollis avatar bhollis commented on July 27, 2024

Weird, I could have sworn that Gemfile included "builder" but it doesn't.

from middleman-blog.

bhollis avatar bhollis commented on July 27, 2024

I changed the Gemfile template to include "builder". I realized why I hadn't put it in there before - it used to be a dependency of Middleman itself. Sorry!

from middleman-blog.

hectorsq avatar hectorsq commented on July 27, 2024

Great!

from middleman-blog.

Related Issues (20)

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.