1 // Copyright 2004-2008 Castle Project - http://www.castleproject.org/
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
7 // http://www.apache.org/licenses/LICENSE-2.0
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
15 namespace Castle
.MonoRail
.Framework
20 /// Represents a view template source
22 public interface IViewSource
25 /// Opens the view stream.
27 /// <returns></returns>
28 Stream
OpenViewStream();
31 /// Gets or sets the last updated.
33 /// <value>The last updated.</value>
34 long LastUpdated { get; set; }
37 /// Gets the last modified.
39 /// <value>The last modified.</value>
40 long LastModified { get; }
43 /// Gets a value indicating whether cache is enabled for it.
45 /// <value><c>true</c> if cache is enabled for it; otherwise, <c>false</c>.</value>
46 bool EnableCache { get; }