forked from ServiceStack/ServiceStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIRazorViewEngine.cs
More file actions
38 lines (34 loc) · 1.22 KB
/
IRazorViewEngine.cs
File metadata and controls
38 lines (34 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using System;
using ServiceStack.Html;
namespace ServiceStack.Razor.Templating
{
/// <summary>
/// Defines the required contract for implementing a template resolver.
/// </summary>
public interface IRazorViewEngine : IViewEngine
{
/// <summary>
/// Creates an instance of the specified type.
/// </summary>
/// <param name="type">The type to create an instance.</param>
ITemplate CreateInstance(Type type);
/// <summary>
/// Determine whether a template at the specified path or page name exists.
/// </summary>
/// <param name="pagePathOrName"></param>
/// <returns></returns>
bool HasTemplate(string pagePathOrName);
/// <summary>
/// Gets the template with the specified name.
/// </summary>
/// <param name="name">The name of the template.</param>
/// <returns>The string template.</returns>
string GetTemplate(string name);
/// <summary>
/// Gets the view page with the specified name
/// </summary>
/// <param name="name"></param>
/// <returns></returns>
IViewPage GetView(string name);
}
}