alchemy_cms

https://github.com/magiclabs/alchemy_cms

Ruby

AlchemyCMS is a powerful, flexible and user centric Rails 5 CMS. 🧙🏻‍♂️

Alchemy::OnPageLayout#on_page_layout

Define a page layout callback

Pass a block or method name in which you have the +@page+ object available and can do
everything as if you were in a normal controller action.

Pass a +Alchemy::PageLayout+ name, an array of names, or +:all+ to
evaluate the callback on either some specific or all the pages.

Source | Google | Stack overflow

Edit

git clone [email protected]:magiclabs/alchemy_cms.git

cd alchemy_cms

open lib/alchemy/on_page_layout.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Alchemy--OnPageLayout-on_page_layout-for-pr


# Commit to git

git add lib/alchemy/on_page_layout.rbgit commit -m "better docs for Alchemy::OnPageLayout#on_page_layout"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Alchemy--OnPageLayout-on_page_layout-for-pr

hub pull-request


# Celebrate!