Re: Changing the title or layout template, using Jade

61 views
Skip to first unread message

Matthew Farwell

unread,
Feb 7, 2013, 2:25:33 AM2/7/13
to sca...@googlegroups.com
Try http://stackoverflow.com

Matthew Farwell.

2013/2/7 Benjamin Polen <bpol...@gmail.com>
Is there a better place to ask this question? 


On Friday, February 1, 2013 8:14:09 AM UTC-5, Ben wrote:
Hi,
In the User Guide there is a section "Changing the title or layout
template."  It provides an example how to change the title in SSP;
however, I would like to do the same thing, but in Jade.  In my
DefaultLayout, I attempted to set a title attribute like below:
DefaultLayout.jade:

    -@ var title: String = "Default Title"

Then in my index.jade, I attempted to reset the title attribute like
below:
index.jade:

    - attributes("title") = "New Title"

I don't get an error, but the title of the page doesn't change.  Any
ideas how to do this in Jade?
Thanks,
Ben

--
You received this message because you are subscribed to the Google Groups "Scalate" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scalate+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Stefan Ollinger

unread,
Feb 7, 2013, 5:29:53 PM2/7/13
to sca...@googlegroups.com
That should work. How is your project setup? Can you publish your
project on github?

Regards,
Stefan
Reply all
Reply to author
Forward
0 new messages