Removed initial binder support which was replaced with more general approach.
[castle.git] / MonoRail / monorail_configuration_ref.txt
blobb17192356d491e2f57e2dd391e38b01a5fa9594f
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         <url useExtensions="true|false" /> \r
20         <controllers>\r
21                 <assembly>AssemblyName1</assembly>\r
22                 <assembly>AssemblyName2</assembly>\r
23         </controllers>\r
24         \r
25         <viewcomponents>\r
26                 <assembly>AssemblyName1</assembly>\r
27                 <assembly>AssemblyName2</assembly>\r
28         </viewcomponents>\r
29         \r
30         <!-- customEngine support for backward compatibility purposes -->\r
31         <viewEngine \r
32                 viewPathRoot="views" \r
33                 customEngine="ViewEngine.Type.Name, Assembly">\r
35                 <additionalSources>\r
36                         <assembly name="" namespace="" />\r
37                         <assembly name="" namespace="" />\r
38                 </additionalSources>\r
39                 \r
40         </viewEngine>\r
42         <viewEngines viewPathRoot="views">\r
44                 <add type="ViewEngine.Type.Name1, Assembly" xhtml="false" />\r
45                 <add type="ViewEngine.Type.Name2, Assembly" xhtml="false" />\r
47         </viewEngines>\r
49         <!-- List of services ids:\r
51                         Custom\r
52                         ControllerFactory\r
53                         ViewEngineManager\r
54                         ViewSourceLoader\r
55                         ViewComponentFactory\r
56                         FilterFactory\r
57                         ResourceFactory\r
58                         EmailSender\r
59                         ControllerDescriptorProvider\r
60                         ResourceDescriptorProvider\r
61                         RescueDescriptorProvider\r
62                         LayoutDescriptorProvider\r
63                         HelperDescriptorProvider\r
64                         FilterDescriptorProvider\r
65                         EmailTemplateService\r
66                         ControllerTree\r
67                         CacheProvider\r
68                         ScaffoldingSupport\r
69         -->\r
70         \r
71         <services>\r
72                 <service \r
73                         id="[see list above]" \r
74                         type="Service.Type.Name, Assembly"\r
75                         interface="optional" />\r
76         </services>\r
77         \r
78         <extensions>\r
79                 <extension type="Extension.Type.Name, Assembly" />\r
80                 <extension type="Extension.Type.Name, Assembly" />\r
81         </extensions>\r
83         <routing matchHostNameAndPath="true|false" excludeAppPath="true|false">\r
84                 <rule>\r
85                         <pattern>(/blog/posts/)(\d+)/(\d+)/(.)*$</pattern>\r
86                         <replace><![CDATA[ /blog/view.rails?year=$2&month=$3 ]]></replace>\r
87                 </rule>\r
88                 <rule>\r
89                         <pattern>(/news/)(\d+)/(\d+)/(.)*$</pattern>\r
90                         <replace><![CDATA[ /news/view.rails?year=$2&month=$3 ]]></replace>\r
91                 </rule>\r
92         </routing>\r
93         \r
94 </monorail>\r