0

Is it possible to use the same layout file across different (mounted) apps without some hackish solution (i.e. sym links) on Padrino ?

Cheers, Ze

user361526
  • 3,333
  • 5
  • 25
  • 36

1 Answers1

3

You can use:

render :foo, :layout => :"path/to/layout"
DAddYE
  • 1,719
  • 11
  • 16
  • This seems a bit redundant if one has several renders in a controller. Is there an option to set layout for the whole controller? Something like `set :layout, :"path/to/layout"` ? – ujifgc Jan 25 '12 at 08:14
  • :layout :custom ... will use "views/layouts/custom" ... see http://www.padrinorb.com/guides/controllers#layouts – Foot Feb 29 '12 at 05:27