Louis,
You're great. Just a couple of days after the request... like a hare
pulled out from the hat. Thank you.
I haven't taken a look at sources yet, but have read your blog post
about complexities with castle version. I'd suggest to use a global
dictionary to be filled in on compilation stage for _all_ spark files
private readonly Dictionary<string, DateTime> _fileTimestamps = new
Dictionary<string, DateTime>();
...
foreach (string inputFile in inputFiles)
{
_fileTimestamps[inputFile] = File.GetLastWriteTime(inputFile);
}
and a method
public void RecompileIfChanged(...)
{
lock (_sync)
{
foreach (KeyValuePair<string, DateTime> inputFile in
_fileTimestamps)
{
if (File.GetLastWriteTime(inputFile.Key) > inputFile.Value)
{
CompileView(...);
break;
}
}
}
}
The idea - to keep timestamps of all "compilable" files on developer's
side to recompile them on demand but switch this feature off in
production environment (web.config setting ?).
Hope this helps.
On Aug 27, 9:03 am, "Spark View Engine" <
louis.dejar...@gmail.com>
wrote:
> #43: Create a sample for medium-trust deployment
> ---------------------------+------------------------------------------------