Fixing an issue where setting a custom property on a handler will not propagate it...
[castle.git] / MonoRail / monorail_configuration_ref.txt
blob2e6e2ba29333c03436cb5406bfa42e079e54a20e
1 <monorail \r
2         useWindsorIntegration="true|false"\r
3         checkClientIsConnected="true|false"\r
4         smtpHost="" \r
5         smtpUsername="" \r
6         smtpPassword="">\r
7         \r
8         <!-- custom Factories/Should be configured on services. Here for backward compatibility purposes -->\r
9         \r
10         <customControllerFactory type="type name that implements IControllerFactory" />\r
11         <customComponentFactory type="type name that implements IComponentFactory" />\r
12         <customFilterFactory type="type name that implements IFilterFactory" />\r
14         <defaultUrls>\r
15                 <add url="/index.rails" controller="home" action="index" area="optional" />\r
16         </defaultUrls>\r
18         <controllers>\r
19                 <assembly>AssemblyName1</assembly>\r
20                 <assembly>AssemblyName2</assembly>\r
21         </controllers>\r
22         \r
23         <viewcomponents>\r
24                 <assembly>AssemblyName1</assembly>\r
25                 <assembly>AssemblyName2</assembly>\r
26         </viewcomponents>\r
27         \r
28         <!-- customEngine support for backward compatibility purposes -->\r
29         <viewEngine \r
30                 viewPathRoot="views" \r
31                 customEngine="ViewEngine.Type.Name, Assembly">\r
33                 <additionalSources>\r
34                         <assembly name="" namespace="" />\r
35                         <assembly name="" namespace="" />\r
36                 </additionalSources>\r
37                 \r
38         </viewEngine>\r
40         <viewEngines viewPathRoot="views">\r
42                 <add type="ViewEngine.Type.Name1, Assembly" xhtml="false" />\r
43                 <add type="ViewEngine.Type.Name2, Assembly" xhtml="false" />\r
45         </viewEngines>\r
47         <!-- List of services ids:\r
49                         Custom\r
50                         ControllerFactory\r
51                         ViewEngineManager\r
52                         ViewSourceLoader\r
53                         ViewComponentFactory\r
54                         FilterFactory\r
55                         ResourceFactory\r
56                         EmailSender\r
57                         ControllerDescriptorProvider\r
58                         ResourceDescriptorProvider\r
59                         RescueDescriptorProvider\r
60                         LayoutDescriptorProvider\r
61                         HelperDescriptorProvider\r
62                         FilterDescriptorProvider\r
63                         EmailTemplateService\r
64                         ControllerTree\r
65                         CacheProvider\r
66                         ScaffoldingSupport\r
67         -->\r
68         \r
69         <services>\r
70                 <service \r
71                         id="[see list above]" \r
72                         type="Service.Type.Name, Assembly"\r
73                         interface="optional" />\r
74         </services>\r
75         \r
76         <extensions>\r
77                 <extension type="Extension.Type.Name, Assembly" />\r
78                 <extension type="Extension.Type.Name, Assembly" />\r
79         </extensions>\r
81         <routing matchHostNameAndPath="true|false" excludeAppPath="true|false">\r
82                 <rule>\r
83                         <pattern>(/blog/posts/)(\d+)/(\d+)/(.)*$</pattern>\r
84                         <replace><![CDATA[ /blog/view.rails?year=$2&month=$3 ]]></replace>\r
85                 </rule>\r
86                 <rule>\r
87                         <pattern>(/news/)(\d+)/(\d+)/(.)*$</pattern>\r
88                         <replace><![CDATA[ /news/view.rails?year=$2&month=$3 ]]></replace>\r
89                 </rule>\r
90         </routing>\r
91         \r
92 </monorail>\r