librelist archives

« back to archive

specifying a different layout for a haml file?

specifying a different layout for a haml file?

From:
Jeff Schoolcraft
Date:
2012-02-20 @ 02:45
I currently use NestaCMS for my business site: http://aissaclabs.com

I want to create a page for the app I just released 
(http://itunes.apple.com/us/app/mathminuteaddition/id500896247?mt=8) 
using the SlickApp theme from themeforest (for now, anyway, 
http://themeforest.net/item/slickapp-iphone-mobile-app-website-theme/121967)

For a number of reasons it doesn't make sense to try to make this a 
markdown page, so I'd prefer to do something like 
content/pages/apps/math-minute-addition.haml and have it either 
completely define it's layout or, specify a layout and yield to the rest 
of the haml.

I'm sure it's possible, but, do I have to drop down to messing with 
routes?  Or, more plainly, how would I do this?

If there's a better way, I'd love to hear it.

Thanks,

Jeff

Re: [nesta] specifying a different layout for a haml file?

From:
Graham Ashton
Date:
2012-02-20 @ 07:48
On 20 Feb 2012, at 02:45, Jeff Schoolcraft <jeff@thequeue.net> wrote:

> For a number of reasons it doesn't make sense to try to make this a 
markdown page, so I'd prefer to do something like 
content/pages/apps/math-minute-addition.haml and have it either completely
define it's layout or, specify a layout and yield to the rest of the haml.

http://nestacms.com/docs/creating-content/metadata-reference#layout

:-)

Re: [nesta] specifying a different layout for a haml file?

From:
Jeff Schoolcraft
Date:
2012-02-20 @ 11:50
Isn't the metadata section only for non-haml pages, like mdown?

> Graham Ashton <mailto:graham@effectif.com>
> February 20, 2012 2:48 AM
>
> http://nestacms.com/docs/creating-content/metadata-reference#layout
>
> :-)
> Jeff Schoolcraft <mailto:jeff@thequeue.net>
> February 19, 2012 9:45 PM
> I currently use NestaCMS for my business site: http://aissaclabs.com
>
> I want to create a page for the app I just released 
> (http://itunes.apple.com/us/app/mathminuteaddition/id500896247?mt=8) 
> using the SlickApp theme from themeforest (for now, anyway, 
> http://themeforest.net/item/slickapp-iphone-mobile-app-website-theme/121967)
>
> For a number of reasons it doesn't make sense to try to make this a 
> markdown page, so I'd prefer to do something like 
> content/pages/apps/math-minute-addition.haml and have it either 
> completely define it's layout or, specify a layout and yield to the 
> rest of the haml.
>
> I'm sure it's possible, but, do I have to drop down to messing with 
> routes?  Or, more plainly, how would I do this?
>
> If there's a better way, I'd love to hear it.
>
> Thanks,
>
> Jeff
> Jeff Schoolcraft <mailto:jeff@thequeue.net>
> February 19, 2012 9:45 PM
> I currently use NestaCMS for my business site: http://aissaclabs.com
>
> I want to create a page for the app I just released 
> (http://itunes.apple.com/us/app/mathminuteaddition/id500896247?mt=8) 
> using the SlickApp theme from themeforest (for now, anyway, 
> http://themeforest.net/item/slickapp-iphone-mobile-app-website-theme/121967)
>
> For a number of reasons it doesn't make sense to try to make this a 
> markdown page, so I'd prefer to do something like 
> content/pages/apps/math-minute-addition.haml and have it either 
> completely define it's layout or, specify a layout and yield to the 
> rest of the haml.
>
> I'm sure it's possible, but, do I have to drop down to messing with 
> routes?  Or, more plainly, how would I do this?
>
> If there's a better way, I'd love to hear it.
>
> Thanks,
>
> Jeff

Re: [nesta] specifying a different layout for a haml file?

From:
Tommy Palmer
Date:
2012-02-20 @ 11:51
Nope, you can apply metadata to haml pages too.


On Monday, 20 February 2012 at 11:50, Jeff Schoolcraft wrote:

> Isn't the metadata section only for non-haml pages, like mdown?
> 
> > Graham Ashton (mailto:graham@effectif.com) 
> > February 20, 2012 2:48 AM
> > 
> > 
> > 
> > http://nestacms.com/docs/creating-content/metadata-reference#layout
> > 
> > :-)
> > Jeff Schoolcraft (mailto:jeff@thequeue.net) 
> > February 19, 2012 9:45 PM
> > 
> > 
> > I currently use NestaCMS for my business site: http://aissaclabs.com
> > 
> > I want to create a page for the app I just released 
(http://itunes.apple.com/us/app/mathminuteaddition/id500896247?mt=8) using
the SlickApp theme from themeforest (for now, anyway, 
http://themeforest.net/item/slickapp-iphone-mobile-app-website-theme/121967)
> > 
> > For a number of reasons it doesn't make sense to try to make this a 
markdown page, so I'd prefer to do something like 
content/pages/apps/math-minute-addition.haml and have it either completely
define it's layout or, specify a layout and yield to the rest of the haml.
> > 
> > I'm sure it's possible, but, do I have to drop down to messing with 
routes?  Or, more plainly, how would I do this?
> > 
> > If there's a better way, I'd love to hear it.
> > 
> > Thanks,
> > 
> > Jeff
> > Jeff Schoolcraft (mailto:jeff@thequeue.net) 
> > February 19, 2012 9:45 PM
> > 
> > 
> > I currently use NestaCMS for my business site: http://aissaclabs.com
> > 
> > I want to create a page for the app I just released 
(http://itunes.apple.com/us/app/mathminuteaddition/id500896247?mt=8) using
the SlickApp theme from themeforest (for now, anyway, 
http://themeforest.net/item/slickapp-iphone-mobile-app-website-theme/121967)
> > 
> > For a number of reasons it doesn't make sense to try to make this a 
markdown page, so I'd prefer to do something like 
content/pages/apps/math-minute-addition.haml and have it either completely
define it's layout or, specify a layout and yield to the rest of the haml.
> > 
> > I'm sure it's possible, but, do I have to drop down to messing with 
routes?  Or, more plainly, how would I do this?
> > 
> > If there's a better way, I'd love to hear it.
> > 
> > Thanks,
> > 
> > Jeff

Re: [nesta] specifying a different layout for a haml file?

From:
Jeff Schoolcraft
Date:
2012-02-20 @ 12:01
I could swear I've tried and failed at doing this.  But it works, thanks.

> Tommy Palmer <mailto:hi@tommyp.org>
> February 20, 2012 6:51 AM
> Nope, you can apply metadata to haml pages too.
>
> On Monday, 20 February 2012 at 11:50, Jeff Schoolcraft wrote:
>
>
> Jeff Schoolcraft <mailto:jeff@thequeue.net>
> February 20, 2012 6:50 AM
> Isn't the metadata section only for non-haml pages, like mdown?
>
> Graham Ashton <mailto:graham@effectif.com>
> February 20, 2012 2:48 AM
>
> http://nestacms.com/docs/creating-content/metadata-reference#layout
>
> :-)
> Jeff Schoolcraft <mailto:jeff@thequeue.net>
> February 19, 2012 9:45 PM
> I currently use NestaCMS for my business site: http://aissaclabs.com
>
> I want to create a page for the app I just released 
> (http://itunes.apple.com/us/app/mathminuteaddition/id500896247?mt=8) 
> using the SlickApp theme from themeforest (for now, anyway, 
> http://themeforest.net/item/slickapp-iphone-mobile-app-website-theme/121967)
>
> For a number of reasons it doesn't make sense to try to make this a 
> markdown page, so I'd prefer to do something like 
> content/pages/apps/math-minute-addition.haml and have it either 
> completely define it's layout or, specify a layout and yield to the 
> rest of the haml.
>
> I'm sure it's possible, but, do I have to drop down to messing with 
> routes?  Or, more plainly, how would I do this?
>
> If there's a better way, I'd love to hear it.
>
> Thanks,
>
> Jeff
> Jeff Schoolcraft <mailto:jeff@thequeue.net>
> February 19, 2012 9:45 PM
> I currently use NestaCMS for my business site: http://aissaclabs.com
>
> I want to create a page for the app I just released 
> (http://itunes.apple.com/us/app/mathminuteaddition/id500896247?mt=8) 
> using the SlickApp theme from themeforest (for now, anyway, 
> http://themeforest.net/item/slickapp-iphone-mobile-app-website-theme/121967)
>
> For a number of reasons it doesn't make sense to try to make this a 
> markdown page, so I'd prefer to do something like 
> content/pages/apps/math-minute-addition.haml and have it either 
> completely define it's layout or, specify a layout and yield to the 
> rest of the haml.
>
> I'm sure it's possible, but, do I have to drop down to messing with 
> routes?  Or, more plainly, how would I do this?
>
> If there's a better way, I'd love to hear it.
>
> Thanks,
>
> Jeff