Skip to content

Commit

Permalink
⬆️ current beta to v4.0.0.beta.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerry Lin committed Sep 1, 2015
1 parent 2f9a8b8 commit 8128ea0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions source/basics/upgrade-v4.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Upgrading to v4
---

**The v4 series is currently in beta. You don't need to upgrade any time soon, but we'd love extension authors to begin experimenting with the new APIs. The current release is `v4.0.0.beta.1`**
**The v4 series is currently in beta. You don't need to upgrade any time soon, but we'd love extension authors to begin experimenting with the new APIs. The current release is `v4.0.0.beta.2`** Check the (changelog)[https://github.com/middleman/middleman/blob/master/CHANGELOG.md] for a list of merged changes.

# Upgrading to v4

Expand Down Expand Up @@ -169,21 +169,20 @@ Now, each context has it's own sandbox. Extensions may want to add methods to th
`manipulate_resource_list` is great, but often more complex than most extensions need. Now, we have a way to simply create a resource with string contents.

* `resources :more_pages` will call the `more_pages` method inside your extension. That method is expected to return a Hash where the keys are the output URLs and the values are either a String of a Symbol representing another internal method.

```
resources :more_pages

def more_pages
{
"/page1.html" => :page1,
"/page2.html" => "Hello"
}
end

def page1
"Page 1"
end
```

* `resources "/page1.html" => "greetings"` is a shorthand form of the above. The method takes a Hash of paths to symbols or strings.

0 comments on commit 8128ea0

Please sign in to comment.