Finding child views of a view

11 views
Skip to first unread message

Jaikishan Jalan

unread,
Feb 26, 2012, 8:13:38 PM2/26/12
to spar...@googlegroups.com
Hello,
 
Given a non partial view ( say X.spark), is it possible to know all the possible child/partial views it uses ?
 
For example, if my X.spark looks like
 
<Y />
 
if(true)
<X1 />
else
<X2 />
 
I need to know X uses Y, X1, and X2.

--
Thanks,
Jaikishan

Rob G

unread,
Feb 27, 2012, 4:49:10 AM2/27/12
to spar...@googlegroups.com
At which point in the process would you need to know this information?

Spark doesn't have any kind of view diagnostics built into it at the moment. SparkSense knows this information for intellisense purposes, but I suppose that could be pulled into some kind of built in view that gives diagnostic info.

I'd need to know a bit more about the requirement though before I could comment properly...

Cheers,
Rob

--
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.

Jaikishan Jalan

unread,
Feb 28, 2012, 2:45:20 AM2/28/12
to Rob G, spar...@googlegroups.com
Need this info once all the views are processed i.e. at end of the request.

Essentially, I am building a server side framework to generate html 5 application cache manifest file based on the last modified time of all js, css and .spark views. So, anytime you change any of these file types, i want to regenerate the cache manifest file.

I looked at source code and looks like this information is present with CompiledViewEntry.Loader object.

At an abstract layer, it would be nice to sort of have the ability to run a trace through the view engine for a given request without invoking any view code.

Sent from my Windows Phone

From: Rob G
Sent: 2/27/2012 1:49 AM
To: spar...@googlegroups.com
Subject: Re: Finding child views of a view

Reply all
Reply to author
Forward
0 new messages