Spark completely outside the context of view engine / mvc

5 views
Skip to first unread message

Weston Weems

unread,
Feb 4, 2010, 10:24:29 AM2/4/10
to spar...@googlegroups.com
Ok,

I am fully aware of how you can easily create a IViewFolder and ITemplateLocator or whatever and get it to render outside the context of mvc... but is there something simpler?

I need to have full control and want to leave behind anything that may hinder performance or add overhead. It would appear I'll need to implement some sort of an additional pass in rendering so content from viewmodel can be parsed and rendered (dynamically plopping different partial views here and there based on model.). This would be super easy if I could just pass it a string or a file and a Dictionary<String,Object>.

I guess my question is can I pull out the bits that do the actual parsing and rending, and have it do just that? (I probably wont be able to take advantage of inbuilt caching and things anyway as I am kind of already bending spark over backwards.)

Weston

Stéphane

unread,
Feb 8, 2010, 9:44:32 AM2/8/10
to Spark View Engine Dev
I actually want to do the same thing in the context of a Newsletter
Generator.
I want something ultra simple, I have another service passing me all
the data I need to build my newsletter, and I would like the Spark
View Engine to spit an html file to my MailServer queue folder
If you found an easy way to do, please let me know :).
I have not taken a look at it yet, but I will start very soon.

Stephane

Jonas Gauffin

unread,
Feb 9, 2010, 1:23:53 AM2/9/10
to spar...@googlegroups.com
I've completed my implementation of spark for the C# Webserver.

1. Create a IViewFolder implementation 
2. Create your own ISparkView implementation
3. Pass both to spark view engine and render a view.


--
You received this message because you are subscribed to the Google Groups "Spark View Engine Dev" group.
To post to this group, send email to spar...@googlegroups.com.
To unsubscribe from this group, send email to spark-dev+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/spark-dev?hl=en.


Reply all
Reply to author
Forward
0 new messages