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

Decouple areas from directories #3

Closed
danelowe opened this issue Jul 31, 2015 · 1 comment
Closed

Decouple areas from directories #3

danelowe opened this issue Jul 31, 2015 · 1 comment

Comments

@danelowe
Copy link
Owner

1. By wrapping your DSL (TODO: Not Completed yet)

If you app code is organised into modules, you may wish to keep a layout file in each module.
This way the layout files can each place cells related to their own modules on any page of the app.

Just wrap the DSL with Glia.area(:area_name) do .. end,
then make sure the layout files are required as part of your app's bootstrap process.

Glia.area(:frontend) do 
  handle :pavlova_view do
    reference name: :specifications do
      remove name: :cake_specs
    end
    reference name: :cake_ingredients, template_name: 'cake/pavlova_ingredients' do
      action name: :add_ingredient, args: ['Eggs', '6 Large']
    end
  end
end
@danelowe
Copy link
Owner Author

The method would retrieve the UpdateBuilder from the UpdateRegistry

@danelowe danelowe changed the title Decouple areas form directories Decouple areas from directories Jul 31, 2015
danelowe pushed a commit that referenced this issue Aug 2, 2015
Closes #1, closes #2, closes #3, and closes #4.
danelowe pushed a commit that referenced this issue Aug 2, 2015
Closes #1, closes #2, closes #3, and closes #4.
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

No branches or pull requests

1 participant