-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmonorail_configuration_ref.txt
93 lines (75 loc) · 2.39 KB
/
monorail_configuration_ref.txt
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<monorail
smtpHost=""
smtpUsername=""
smtpPassword="">
<!-- custom Factories/Should be configured on services. Here for backward compatibility purposes -->
<customControllerFactory type="type name that implements IControllerFactory" />
<customComponentFactory type="type name that implements IComponentFactory" />
<customFilterFactory type="type name that implements IFilterFactory" />
<defaultUrls>
<add url="/index.rails" controller="home" action="index" area="optional" />
</defaultUrls>
<url useExtensions="true|false" />
<controllers>
<assembly>AssemblyName1</assembly>
<assembly>AssemblyName2</assembly>
</controllers>
<viewcomponents>
<assembly>AssemblyName1</assembly>
<assembly>AssemblyName2</assembly>
</viewcomponents>
<!-- customEngine support for backward compatibility purposes -->
<viewEngine
viewPathRoot="views"
customEngine="ViewEngine.Type.Name, Assembly">
<additionalSources>
<assembly name="" namespace="" />
<assembly name="" namespace="" />
<path location="" />
</additionalSources>
</viewEngine>
<viewEngines viewPathRoot="views">
<add type="ViewEngine.Type.Name1, Assembly" xhtml="false" />
<add type="ViewEngine.Type.Name2, Assembly" xhtml="false" />
</viewEngines>
<!-- List of services ids:
Custom
ControllerFactory
ViewEngineManager
ViewSourceLoader
ViewComponentFactory
FilterFactory
ResourceFactory
EmailSender
ControllerDescriptorProvider
ResourceDescriptorProvider
RescueDescriptorProvider
LayoutDescriptorProvider
HelperDescriptorProvider
FilterDescriptorProvider
EmailTemplateService
ControllerTree
CacheProvider
ScaffoldingSupport
-->
<services>
<service
id="[see list above]"
type="Service.Type.Name, Assembly"
interface="optional" />
</services>
<extensions>
<extension type="Extension.Type.Name, Assembly" />
<extension type="Extension.Type.Name, Assembly" />
</extensions>
<routing matchHostNameAndPath="true|false" excludeAppPath="true|false">
<rule>
<pattern>(/blog/posts/)(\d+)/(\d+)/(.)*$</pattern>
<replace><![CDATA[ /blog/view.rails?year=$2&month=$3 ]]></replace>
</rule>
<rule>
<pattern>(/news/)(\d+)/(\d+)/(.)*$</pattern>
<replace><![CDATA[ /news/view.rails?year=$2&month=$3 ]]></replace>
</rule>
</routing>
</monorail>