public
Description: Plugin for running Ruby in the browser seamlessly from Rails, and display either HTML or vector graphics
Homepage: http://jimmy.schementi.com/silverline
Clone URL: git://github.com/jschementi/silverline.git
silverline / public / ironruby / Chiron.exe.config
100755 98 lines (82 sloc) 4.001 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
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
94
95
96
97
98
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <configSections>
    <section name="Languages" type="Chiron.LanguageSection, Chiron"/>
    <section name="AppManifest.xaml" type="Chiron.AppManifestSection, Chiron"/>
    <section name="MimeTypes" type="Chiron.MimeTypeSection, Chiron"/>
  </configSections>
 
  <appSettings>
    <!--
    This sets the base URL to load language assemblies from, instead of
    packaging them in the XAP. If omitted, assemblies are copied from
    localAssemblyPath and inserted in the XAP file.
    
    For a rooted path but a relative domain name:
    <add key="urlPrefix" value="/path/to/language/assemblies" />
    
    For an absolute URL on a domain:
    <add key="urlPrefix" value="http://example.com/assemblies/" />
    -->
    
    <!-- the location of language assemblies on disk -->
    <add key="localAssemblyPath" value="." />
  </appSettings>
 
  <!--
  Information about DLR based languages.
  Chiron uses the source file's extension to determine which language's
  assemblies should be included. Multiple languages are allowed in a project,
  and new DLR-based languages can be added to the list.
  -->
  <Languages>
 
    <Language extensions="rb" assemblies="IronRuby.dll, IronRuby.Libraries.dll" />
 
    <!--
    Example language entry. The languageContext attribute must point at the
    class deriving from LanguageContext.
    
    <Language extensions="myext"
              assemblies="http://example.com/MyLanguage/MyLanguageRuntime.dll"
              languageContext="MyLanguage.Namespace.MyLanguageContextClass" />
    -->
 
  </Languages>
 
 
  <!--
  This is the template AppManifest.xaml file
  It will be included if an AppManifest.xaml file is not already present.
    
  These transformations are made:
    1. language assemblies are added at the end of Deployment.Parts
    2. the urlPrefix will be added to relative assembly paths
  -->
  <AppManifest.xaml>
    <Deployment xmlns="http://schemas.microsoft.com/client/2007/deployment"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      RuntimeVersion="2.0.31005.00"
      EntryPointAssembly="Microsoft.Scripting.Silverlight"
      EntryPointType="Microsoft.Scripting.Silverlight.DynamicApplication">
      
      <Deployment.Parts>
        <!-- Add additional assemblies here -->
      </Deployment.Parts>
    </Deployment>
  </AppManifest.xaml>
 
  <!--
  file extensions & MIME types recognized by Chiron.
  It will return 403 for unrecognized file types
  -->
  <MimeTypes>
    <mimeMap fileExtension=".htm" mimeType="text/html" />
    <mimeMap fileExtension=".html" mimeType="text/html" />
    <mimeMap fileExtension=".css" mimeType="text/css" />
    <mimeMap fileExtension=".txt" mimeType="text/plain" />
    <mimeMap fileExtension=".xml" mimeType="text/xml" />
    <mimeMap fileExtension=".rss" mimeType="text/xml" />
    <mimeMap fileExtension=".gif" mimeType="image/gif" />
    <mimeMap fileExtension=".jpg" mimeType="image/jpeg" />
    <mimeMap fileExtension=".jpeg" mimeType="image/jpeg" />
    <mimeMap fileExtension=".png" mimeType="image/png" />
    <mimeMap fileExtension=".ico" mimeType="image/x-icon" />
    <mimeMap fileExtension=".js" mimeType="application/x-javascript" />
    <mimeMap fileExtension=".xaml" mimeType="application/xaml+xml" />
    <mimeMap fileExtension=".xap" mimeType="application/x-zip-compressed" />
    <mimeMap fileExtension=".zip" mimeType="application/x-zip-compressed" />
    <mimeMap fileExtension=".dll" mimeType="application/x-msdownload" />
    <mimeMap fileExtension=".pdb" mimeType="application/x-msdownload" />
    <mimeMap fileExtension=".asf" mimeType="video/x-ms-asf" />
    <mimeMap fileExtension=".asx" mimeType="video/x-ms-asf" />
    <mimeMap fileExtension=".wma" mimeType="audio/x-ms-wma" />
    <mimeMap fileExtension=".wmv" mimeType="audio/x-ms-wmv" />
  </MimeTypes>
  
</configuration>