I am trying to understand Registered Layouts.
I have a group of Registered Layouts in my Coldbox.cfc
layouts = [
{ name = “email_html”,
file = “Layout.Email.HTML.cfm”,
views = “link/email/linkto.html,login/email/lostPassword.html”
},
{ name = “email_text”,
file = “Layout.Email.Text.cfm”,
views = “link/email/linkto.text,login/email/lostPassword.text”
}
];
How do I use the registered layout?
what I want to do is renderView(‘login/email/lostPassword.text’) where it renders the layout and returns me a variable. is this possible?
Something like var myBodyContent = renderView(‘login/email/lostPassword.text’);
Jeremy R. DeYoung
Phone: 615.261.8201