Groups
Groups
Sign in
Groups
Groups
Spark View Engine Dev
Conversations
About
Send feedback
Help
Direct Usage and Theming
7 views
Skip to first unread message
sianabanana
unread,
Jan 30, 2012, 11:29:54 AM
1/30/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Spark View Engine Dev
I have an MVC app that i use the ThemeDescriptorFilter to succesfully
theme my app.
My app also sends out Emails which i would like to theme. These are
currently being generated by direct usage.
TextWriter writer = new StringWriter();
SparkViewDescriptor descriptor = new
SparkViewDescriptor();
descriptor.AddTemplate(templateFileName);
SparkTemplateBase<T> view =
(SparkTemplateBase<T>)engine.CreateInstance(descriptor);
try
{
view.Model = model;
view.RenderView(writer);
}
finally
{
engine.ReleaseInstance(view);
}
return writer.ToString();
Has anyone used theming with direct usage before?
Can anyone point me in the right direction?
Reply all
Reply to author
Forward
0 new messages