middleman-sculptor 0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
 - data/.editorconfig +10 -0
 - data/.gitignore +9 -0
 - data/Gemfile +3 -0
 - data/Rakefile +2 -0
 - data/bin/middleman-sculptor +7 -0
 - data/bin/sculpt +7 -0
 - data/lib/middleman-sculptor.rb +16 -0
 - data/lib/middleman-sculptor/cli.rb +57 -0
 - data/lib/middleman-sculptor/cli/init.rb +15 -0
 - data/lib/middleman-sculptor/cli/version.rb +12 -0
 - data/lib/middleman-sculptor/extension.rb +13 -0
 - data/lib/middleman-sculptor/hash_dot_syntax.rb +6 -0
 - data/lib/middleman-sculptor/helpers/model.rb +110 -0
 - data/lib/middleman-sculptor/helpers/outliner.rb +44 -0
 - data/lib/middleman-sculptor/helpers/resources.rb +155 -0
 - data/lib/middleman-sculptor/resource_patch.rb +49 -0
 - data/lib/middleman-sculptor/sprockets_patch.rb +48 -0
 - data/lib/middleman-sculptor/template.rb +39 -0
 - data/lib/middleman-sculptor/template/.bowerrc +3 -0
 - data/lib/middleman-sculptor/template/.editorconfig +10 -0
 - data/lib/middleman-sculptor/template/.gitignore +2 -0
 - data/lib/middleman-sculptor/template/Gemfile.tt +11 -0
 - data/lib/middleman-sculptor/template/bower.json +12 -0
 - data/lib/middleman-sculptor/template/config.tt +149 -0
 - data/lib/middleman-sculptor/template/data/.gitkeep +0 -0
 - data/lib/middleman-sculptor/template/source/assets/images/.gitkeep +0 -0
 - data/lib/middleman-sculptor/template/source/assets/scripts/app.js +6 -0
 - data/lib/middleman-sculptor/template/source/assets/scripts/glyptotheque.js +8 -0
 - data/lib/middleman-sculptor/template/source/assets/scripts/glyptotheque/controllers.js +1 -0
 - data/lib/middleman-sculptor/template/source/assets/scripts/glyptotheque/directives.js +124 -0
 - data/lib/middleman-sculptor/template/source/assets/scripts/glyptotheque/services.js +1 -0
 - data/lib/middleman-sculptor/template/source/assets/scripts/head-js.js +1 -0
 - data/lib/middleman-sculptor/template/source/assets/scripts/iframe-js.js +1 -0
 - data/lib/middleman-sculptor/template/source/assets/styles/glyptotheque.scss +9 -0
 - data/lib/middleman-sculptor/template/source/assets/styles/glyptotheque/_$variables.scss +3 -0
 - data/lib/middleman-sculptor/template/source/assets/styles/glyptotheque/_base.scss +58 -0
 - data/lib/middleman-sculptor/template/source/assets/styles/glyptotheque/_codehilite.scss +10 -0
 - data/lib/middleman-sculptor/template/source/assets/styles/glyptotheque/_html-outline.scss +131 -0
 - data/lib/middleman-sculptor/template/source/assets/styles/glyptotheque/_model-utils.scss +78 -0
 - data/lib/middleman-sculptor/template/source/assets/styles/glyptotheque/_model.scss +48 -0
 - data/lib/middleman-sculptor/template/source/assets/styles/glyptotheque/_nav.scss +172 -0
 - data/lib/middleman-sculptor/template/source/assets/styles/main.scss +18 -0
 - data/lib/middleman-sculptor/template/source/assets/styles/pygments/borland.css +46 -0
 - data/lib/middleman-sculptor/template/source/assets/styles/pygments/colorful.css +61 -0
 - data/lib/middleman-sculptor/template/source/assets/styles/pygments/github.css +61 -0
 - data/lib/middleman-sculptor/template/source/assets/styles/pygments/trac.css +59 -0
 - data/lib/middleman-sculptor/template/source/glyptotheque/_model-outline-element.slim +22 -0
 - data/lib/middleman-sculptor/template/source/glyptotheque/_model-outline.slim +3 -0
 - data/lib/middleman-sculptor/template/source/glyptotheque/_model-utils.slim +13 -0
 - data/lib/middleman-sculptor/template/source/glyptotheque/_model.slim +26 -0
 - data/lib/middleman-sculptor/template/source/glyptotheque/_nav.slim +31 -0
 - data/lib/middleman-sculptor/template/source/glyptotheque/directory-index.html.slim +14 -0
 - data/lib/middleman-sculptor/template/source/glyptotheque/site-index.html.slim +5 -0
 - data/lib/middleman-sculptor/template/source/glyptotheque/sitemap.json.erb +1 -0
 - data/lib/middleman-sculptor/template/source/layouts/glyptotheque.slim +19 -0
 - data/lib/middleman-sculptor/template/source/layouts/isolated.slim +19 -0
 - data/lib/middleman-sculptor/template/source/layouts/layout.slim +18 -0
 - data/lib/middleman-sculptor/version.rb +5 -0
 - data/lib/middleman_extension.rb +1 -0
 - data/middleman-sculptor.gemspec +29 -0
 - metadata +197 -0
 
| 
         @@ -0,0 +1,46 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            .codehilite .hll { background-color: #ffffcc }
         
     | 
| 
      
 2 
     | 
    
         
            +
            .codehilite .c { color: #008800; font-style: italic } /* Comment */
         
     | 
| 
      
 3 
     | 
    
         
            +
            .codehilite .err { color: #a61717; background-color: #e3d2d2 } /* Error */
         
     | 
| 
      
 4 
     | 
    
         
            +
            .codehilite .k { color: #000080; font-weight: bold } /* Keyword */
         
     | 
| 
      
 5 
     | 
    
         
            +
            .codehilite .cm { color: #008800; font-style: italic } /* Comment.Multiline */
         
     | 
| 
      
 6 
     | 
    
         
            +
            .codehilite .cp { color: #008080 } /* Comment.Preproc */
         
     | 
| 
      
 7 
     | 
    
         
            +
            .codehilite .c1 { color: #008800; font-style: italic } /* Comment.Single */
         
     | 
| 
      
 8 
     | 
    
         
            +
            .codehilite .cs { color: #008800; font-weight: bold } /* Comment.Special */
         
     | 
| 
      
 9 
     | 
    
         
            +
            .codehilite .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
         
     | 
| 
      
 10 
     | 
    
         
            +
            .codehilite .ge { font-style: italic } /* Generic.Emph */
         
     | 
| 
      
 11 
     | 
    
         
            +
            .codehilite .gr { color: #aa0000 } /* Generic.Error */
         
     | 
| 
      
 12 
     | 
    
         
            +
            .codehilite .gh { color: #999999 } /* Generic.Heading */
         
     | 
| 
      
 13 
     | 
    
         
            +
            .codehilite .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
         
     | 
| 
      
 14 
     | 
    
         
            +
            .codehilite .go { color: #888888 } /* Generic.Output */
         
     | 
| 
      
 15 
     | 
    
         
            +
            .codehilite .gp { color: #555555 } /* Generic.Prompt */
         
     | 
| 
      
 16 
     | 
    
         
            +
            .codehilite .gs { font-weight: bold } /* Generic.Strong */
         
     | 
| 
      
 17 
     | 
    
         
            +
            .codehilite .gu { color: #aaaaaa } /* Generic.Subheading */
         
     | 
| 
      
 18 
     | 
    
         
            +
            .codehilite .gt { color: #aa0000 } /* Generic.Traceback */
         
     | 
| 
      
 19 
     | 
    
         
            +
            .codehilite .kc { color: #000080; font-weight: bold } /* Keyword.Constant */
         
     | 
| 
      
 20 
     | 
    
         
            +
            .codehilite .kd { color: #000080; font-weight: bold } /* Keyword.Declaration */
         
     | 
| 
      
 21 
     | 
    
         
            +
            .codehilite .kn { color: #000080; font-weight: bold } /* Keyword.Namespace */
         
     | 
| 
      
 22 
     | 
    
         
            +
            .codehilite .kp { color: #000080; font-weight: bold } /* Keyword.Pseudo */
         
     | 
| 
      
 23 
     | 
    
         
            +
            .codehilite .kr { color: #000080; font-weight: bold } /* Keyword.Reserved */
         
     | 
| 
      
 24 
     | 
    
         
            +
            .codehilite .kt { color: #000080; font-weight: bold } /* Keyword.Type */
         
     | 
| 
      
 25 
     | 
    
         
            +
            .codehilite .m { color: #0000FF } /* Literal.Number */
         
     | 
| 
      
 26 
     | 
    
         
            +
            .codehilite .s { color: #0000FF } /* Literal.String */
         
     | 
| 
      
 27 
     | 
    
         
            +
            .codehilite .na { color: #FF0000 } /* Name.Attribute */
         
     | 
| 
      
 28 
     | 
    
         
            +
            .codehilite .nt { color: #000080; font-weight: bold } /* Name.Tag */
         
     | 
| 
      
 29 
     | 
    
         
            +
            .codehilite .ow { font-weight: bold } /* Operator.Word */
         
     | 
| 
      
 30 
     | 
    
         
            +
            .codehilite .w { color: #bbbbbb } /* Text.Whitespace */
         
     | 
| 
      
 31 
     | 
    
         
            +
            .codehilite .mf { color: #0000FF } /* Literal.Number.Float */
         
     | 
| 
      
 32 
     | 
    
         
            +
            .codehilite .mh { color: #0000FF } /* Literal.Number.Hex */
         
     | 
| 
      
 33 
     | 
    
         
            +
            .codehilite .mi { color: #0000FF } /* Literal.Number.Integer */
         
     | 
| 
      
 34 
     | 
    
         
            +
            .codehilite .mo { color: #0000FF } /* Literal.Number.Oct */
         
     | 
| 
      
 35 
     | 
    
         
            +
            .codehilite .sb { color: #0000FF } /* Literal.String.Backtick */
         
     | 
| 
      
 36 
     | 
    
         
            +
            .codehilite .sc { color: #800080 } /* Literal.String.Char */
         
     | 
| 
      
 37 
     | 
    
         
            +
            .codehilite .sd { color: #0000FF } /* Literal.String.Doc */
         
     | 
| 
      
 38 
     | 
    
         
            +
            .codehilite .s2 { color: #0000FF } /* Literal.String.Double */
         
     | 
| 
      
 39 
     | 
    
         
            +
            .codehilite .se { color: #0000FF } /* Literal.String.Escape */
         
     | 
| 
      
 40 
     | 
    
         
            +
            .codehilite .sh { color: #0000FF } /* Literal.String.Heredoc */
         
     | 
| 
      
 41 
     | 
    
         
            +
            .codehilite .si { color: #0000FF } /* Literal.String.Interpol */
         
     | 
| 
      
 42 
     | 
    
         
            +
            .codehilite .sx { color: #0000FF } /* Literal.String.Other */
         
     | 
| 
      
 43 
     | 
    
         
            +
            .codehilite .sr { color: #0000FF } /* Literal.String.Regex */
         
     | 
| 
      
 44 
     | 
    
         
            +
            .codehilite .s1 { color: #0000FF } /* Literal.String.Single */
         
     | 
| 
      
 45 
     | 
    
         
            +
            .codehilite .ss { color: #0000FF } /* Literal.String.Symbol */
         
     | 
| 
      
 46 
     | 
    
         
            +
            .codehilite .il { color: #0000FF } /* Literal.Number.Integer.Long */
         
     | 
| 
         @@ -0,0 +1,61 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            .codehilite .hll { background-color: #ffffcc }
         
     | 
| 
      
 2 
     | 
    
         
            +
            .codehilite .c { color: #808080 } /* Comment */
         
     | 
| 
      
 3 
     | 
    
         
            +
            .codehilite .err { color: #F00000; background-color: #F0A0A0 } /* Error */
         
     | 
| 
      
 4 
     | 
    
         
            +
            .codehilite .k { color: #008000; font-weight: bold } /* Keyword */
         
     | 
| 
      
 5 
     | 
    
         
            +
            .codehilite .o { color: #303030 } /* Operator */
         
     | 
| 
      
 6 
     | 
    
         
            +
            .codehilite .cm { color: #808080 } /* Comment.Multiline */
         
     | 
| 
      
 7 
     | 
    
         
            +
            .codehilite .cp { color: #507090 } /* Comment.Preproc */
         
     | 
| 
      
 8 
     | 
    
         
            +
            .codehilite .c1 { color: #808080 } /* Comment.Single */
         
     | 
| 
      
 9 
     | 
    
         
            +
            .codehilite .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
         
     | 
| 
      
 10 
     | 
    
         
            +
            .codehilite .gd { color: #A00000 } /* Generic.Deleted */
         
     | 
| 
      
 11 
     | 
    
         
            +
            .codehilite .ge { font-style: italic } /* Generic.Emph */
         
     | 
| 
      
 12 
     | 
    
         
            +
            .codehilite .gr { color: #FF0000 } /* Generic.Error */
         
     | 
| 
      
 13 
     | 
    
         
            +
            .codehilite .gh { color: #000080; font-weight: bold } /* Generic.Heading */
         
     | 
| 
      
 14 
     | 
    
         
            +
            .codehilite .gi { color: #00A000 } /* Generic.Inserted */
         
     | 
| 
      
 15 
     | 
    
         
            +
            .codehilite .go { color: #808080 } /* Generic.Output */
         
     | 
| 
      
 16 
     | 
    
         
            +
            .codehilite .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
         
     | 
| 
      
 17 
     | 
    
         
            +
            .codehilite .gs { font-weight: bold } /* Generic.Strong */
         
     | 
| 
      
 18 
     | 
    
         
            +
            .codehilite .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
         
     | 
| 
      
 19 
     | 
    
         
            +
            .codehilite .gt { color: #0040D0 } /* Generic.Traceback */
         
     | 
| 
      
 20 
     | 
    
         
            +
            .codehilite .kc { color: #008000; font-weight: bold } /* Keyword.Constant */
         
     | 
| 
      
 21 
     | 
    
         
            +
            .codehilite .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */
         
     | 
| 
      
 22 
     | 
    
         
            +
            .codehilite .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */
         
     | 
| 
      
 23 
     | 
    
         
            +
            .codehilite .kp { color: #003080; font-weight: bold } /* Keyword.Pseudo */
         
     | 
| 
      
 24 
     | 
    
         
            +
            .codehilite .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */
         
     | 
| 
      
 25 
     | 
    
         
            +
            .codehilite .kt { color: #303090; font-weight: bold } /* Keyword.Type */
         
     | 
| 
      
 26 
     | 
    
         
            +
            .codehilite .m { color: #6000E0; font-weight: bold } /* Literal.Number */
         
     | 
| 
      
 27 
     | 
    
         
            +
            .codehilite .s { background-color: #fff0f0 } /* Literal.String */
         
     | 
| 
      
 28 
     | 
    
         
            +
            .codehilite .na { color: #0000C0 } /* Name.Attribute */
         
     | 
| 
      
 29 
     | 
    
         
            +
            .codehilite .nb { color: #007020 } /* Name.Builtin */
         
     | 
| 
      
 30 
     | 
    
         
            +
            .codehilite .nc { color: #B00060; font-weight: bold } /* Name.Class */
         
     | 
| 
      
 31 
     | 
    
         
            +
            .codehilite .no { color: #003060; font-weight: bold } /* Name.Constant */
         
     | 
| 
      
 32 
     | 
    
         
            +
            .codehilite .nd { color: #505050; font-weight: bold } /* Name.Decorator */
         
     | 
| 
      
 33 
     | 
    
         
            +
            .codehilite .ni { color: #800000; font-weight: bold } /* Name.Entity */
         
     | 
| 
      
 34 
     | 
    
         
            +
            .codehilite .ne { color: #F00000; font-weight: bold } /* Name.Exception */
         
     | 
| 
      
 35 
     | 
    
         
            +
            .codehilite .nf { color: #0060B0; font-weight: bold } /* Name.Function */
         
     | 
| 
      
 36 
     | 
    
         
            +
            .codehilite .nl { color: #907000; font-weight: bold } /* Name.Label */
         
     | 
| 
      
 37 
     | 
    
         
            +
            .codehilite .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
         
     | 
| 
      
 38 
     | 
    
         
            +
            .codehilite .nt { color: #007000 } /* Name.Tag */
         
     | 
| 
      
 39 
     | 
    
         
            +
            .codehilite .nv { color: #906030 } /* Name.Variable */
         
     | 
| 
      
 40 
     | 
    
         
            +
            .codehilite .ow { color: #000000; font-weight: bold } /* Operator.Word */
         
     | 
| 
      
 41 
     | 
    
         
            +
            .codehilite .w { color: #bbbbbb } /* Text.Whitespace */
         
     | 
| 
      
 42 
     | 
    
         
            +
            .codehilite .mf { color: #6000E0; font-weight: bold } /* Literal.Number.Float */
         
     | 
| 
      
 43 
     | 
    
         
            +
            .codehilite .mh { color: #005080; font-weight: bold } /* Literal.Number.Hex */
         
     | 
| 
      
 44 
     | 
    
         
            +
            .codehilite .mi { color: #0000D0; font-weight: bold } /* Literal.Number.Integer */
         
     | 
| 
      
 45 
     | 
    
         
            +
            .codehilite .mo { color: #4000E0; font-weight: bold } /* Literal.Number.Oct */
         
     | 
| 
      
 46 
     | 
    
         
            +
            .codehilite .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
         
     | 
| 
      
 47 
     | 
    
         
            +
            .codehilite .sc { color: #0040D0 } /* Literal.String.Char */
         
     | 
| 
      
 48 
     | 
    
         
            +
            .codehilite .sd { color: #D04020 } /* Literal.String.Doc */
         
     | 
| 
      
 49 
     | 
    
         
            +
            .codehilite .s2 { background-color: #fff0f0 } /* Literal.String.Double */
         
     | 
| 
      
 50 
     | 
    
         
            +
            .codehilite .se { color: #606060; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
         
     | 
| 
      
 51 
     | 
    
         
            +
            .codehilite .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
         
     | 
| 
      
 52 
     | 
    
         
            +
            .codehilite .si { background-color: #e0e0e0 } /* Literal.String.Interpol */
         
     | 
| 
      
 53 
     | 
    
         
            +
            .codehilite .sx { color: #D02000; background-color: #fff0f0 } /* Literal.String.Other */
         
     | 
| 
      
 54 
     | 
    
         
            +
            .codehilite .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
         
     | 
| 
      
 55 
     | 
    
         
            +
            .codehilite .s1 { background-color: #fff0f0 } /* Literal.String.Single */
         
     | 
| 
      
 56 
     | 
    
         
            +
            .codehilite .ss { color: #A06000 } /* Literal.String.Symbol */
         
     | 
| 
      
 57 
     | 
    
         
            +
            .codehilite .bp { color: #007020 } /* Name.Builtin.Pseudo */
         
     | 
| 
      
 58 
     | 
    
         
            +
            .codehilite .vc { color: #306090 } /* Name.Variable.Class */
         
     | 
| 
      
 59 
     | 
    
         
            +
            .codehilite .vg { color: #d07000; font-weight: bold } /* Name.Variable.Global */
         
     | 
| 
      
 60 
     | 
    
         
            +
            .codehilite .vi { color: #3030B0 } /* Name.Variable.Instance */
         
     | 
| 
      
 61 
     | 
    
         
            +
            .codehilite .il { color: #0000D0; font-weight: bold } /* Literal.Number.Integer.Long */
         
     | 
| 
         @@ -0,0 +1,61 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            .codehilite .hll { background-color: #ffffcc }
         
     | 
| 
      
 2 
     | 
    
         
            +
            .codehilite .c { color: #999988; font-style: italic } /* Comment */
         
     | 
| 
      
 3 
     | 
    
         
            +
            .codehilite .err { color: #a61717; background-color: #e3d2d2 } /* Error */
         
     | 
| 
      
 4 
     | 
    
         
            +
            .codehilite .k { color: #000000; font-weight: bold } /* Keyword */
         
     | 
| 
      
 5 
     | 
    
         
            +
            .codehilite .o { color: #000000; font-weight: bold } /* Operator */
         
     | 
| 
      
 6 
     | 
    
         
            +
            .codehilite .cm { color: #999988; font-style: italic } /* Comment.Multiline */
         
     | 
| 
      
 7 
     | 
    
         
            +
            .codehilite .cp { color: #999999; font-weight: bold; font-style: italic } /* Comment.Preproc */
         
     | 
| 
      
 8 
     | 
    
         
            +
            .codehilite .c1 { color: #999988; font-style: italic } /* Comment.Single */
         
     | 
| 
      
 9 
     | 
    
         
            +
            .codehilite .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
         
     | 
| 
      
 10 
     | 
    
         
            +
            .codehilite .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
         
     | 
| 
      
 11 
     | 
    
         
            +
            .codehilite .ge { color: #000000; font-style: italic } /* Generic.Emph */
         
     | 
| 
      
 12 
     | 
    
         
            +
            .codehilite .gr { color: #aa0000 } /* Generic.Error */
         
     | 
| 
      
 13 
     | 
    
         
            +
            .codehilite .gh { color: #999999 } /* Generic.Heading */
         
     | 
| 
      
 14 
     | 
    
         
            +
            .codehilite .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
         
     | 
| 
      
 15 
     | 
    
         
            +
            .codehilite .go { color: #888888 } /* Generic.Output */
         
     | 
| 
      
 16 
     | 
    
         
            +
            .codehilite .gp { color: #555555 } /* Generic.Prompt */
         
     | 
| 
      
 17 
     | 
    
         
            +
            .codehilite .gs { font-weight: bold } /* Generic.Strong */
         
     | 
| 
      
 18 
     | 
    
         
            +
            .codehilite .gu { color: #aaaaaa } /* Generic.Subheading */
         
     | 
| 
      
 19 
     | 
    
         
            +
            .codehilite .gt { color: #aa0000 } /* Generic.Traceback */
         
     | 
| 
      
 20 
     | 
    
         
            +
            .codehilite .kc { color: #000000; font-weight: bold } /* Keyword.Constant */
         
     | 
| 
      
 21 
     | 
    
         
            +
            .codehilite .kd { color: #000000; font-weight: bold } /* Keyword.Declaration */
         
     | 
| 
      
 22 
     | 
    
         
            +
            .codehilite .kn { color: #000000; font-weight: bold } /* Keyword.Namespace */
         
     | 
| 
      
 23 
     | 
    
         
            +
            .codehilite .kp { color: #000000; font-weight: bold } /* Keyword.Pseudo */
         
     | 
| 
      
 24 
     | 
    
         
            +
            .codehilite .kr { color: #000000; font-weight: bold } /* Keyword.Reserved */
         
     | 
| 
      
 25 
     | 
    
         
            +
            .codehilite .kt { color: #445588; font-weight: bold } /* Keyword.Type */
         
     | 
| 
      
 26 
     | 
    
         
            +
            .codehilite .m { color: #009999 } /* Literal.Number */
         
     | 
| 
      
 27 
     | 
    
         
            +
            .codehilite .s { color: #d01040 } /* Literal.String */
         
     | 
| 
      
 28 
     | 
    
         
            +
            .codehilite .na { color: #008080 } /* Name.Attribute */
         
     | 
| 
      
 29 
     | 
    
         
            +
            .codehilite .nb { color: #0086B3 } /* Name.Builtin */
         
     | 
| 
      
 30 
     | 
    
         
            +
            .codehilite .nc { color: #445588; font-weight: bold } /* Name.Class */
         
     | 
| 
      
 31 
     | 
    
         
            +
            .codehilite .no { color: #008080 } /* Name.Constant */
         
     | 
| 
      
 32 
     | 
    
         
            +
            .codehilite .nd { color: #3c5d5d; font-weight: bold } /* Name.Decorator */
         
     | 
| 
      
 33 
     | 
    
         
            +
            .codehilite .ni { color: #800080 } /* Name.Entity */
         
     | 
| 
      
 34 
     | 
    
         
            +
            .codehilite .ne { color: #990000; font-weight: bold } /* Name.Exception */
         
     | 
| 
      
 35 
     | 
    
         
            +
            .codehilite .nf { color: #990000; font-weight: bold } /* Name.Function */
         
     | 
| 
      
 36 
     | 
    
         
            +
            .codehilite .nl { color: #990000; font-weight: bold } /* Name.Label */
         
     | 
| 
      
 37 
     | 
    
         
            +
            .codehilite .nn { color: #555555 } /* Name.Namespace */
         
     | 
| 
      
 38 
     | 
    
         
            +
            .codehilite .nt { color: #0000b3 } /* Name.Tag */
         
     | 
| 
      
 39 
     | 
    
         
            +
            .codehilite .nv { color: #008080 } /* Name.Variable */
         
     | 
| 
      
 40 
     | 
    
         
            +
            .codehilite .ow { color: #000000; font-weight: bold } /* Operator.Word */
         
     | 
| 
      
 41 
     | 
    
         
            +
            .codehilite .w { color: #bbbbbb } /* Text.Whitespace */
         
     | 
| 
      
 42 
     | 
    
         
            +
            .codehilite .mf { color: #009999 } /* Literal.Number.Float */
         
     | 
| 
      
 43 
     | 
    
         
            +
            .codehilite .mh { color: #009999 } /* Literal.Number.Hex */
         
     | 
| 
      
 44 
     | 
    
         
            +
            .codehilite .mi { color: #009999 } /* Literal.Number.Integer */
         
     | 
| 
      
 45 
     | 
    
         
            +
            .codehilite .mo { color: #009999 } /* Literal.Number.Oct */
         
     | 
| 
      
 46 
     | 
    
         
            +
            .codehilite .sb { color: #d01040 } /* Literal.String.Backtick */
         
     | 
| 
      
 47 
     | 
    
         
            +
            .codehilite .sc { color: #d01040 } /* Literal.String.Char */
         
     | 
| 
      
 48 
     | 
    
         
            +
            .codehilite .sd { color: #d01040 } /* Literal.String.Doc */
         
     | 
| 
      
 49 
     | 
    
         
            +
            .codehilite .s2 { color: #d01040 } /* Literal.String.Double */
         
     | 
| 
      
 50 
     | 
    
         
            +
            .codehilite .se { color: #d01040 } /* Literal.String.Escape */
         
     | 
| 
      
 51 
     | 
    
         
            +
            .codehilite .sh { color: #d01040 } /* Literal.String.Heredoc */
         
     | 
| 
      
 52 
     | 
    
         
            +
            .codehilite .si { color: #d01040 } /* Literal.String.Interpol */
         
     | 
| 
      
 53 
     | 
    
         
            +
            .codehilite .sx { color: #d01040 } /* Literal.String.Other */
         
     | 
| 
      
 54 
     | 
    
         
            +
            .codehilite .sr { color: #009926 } /* Literal.String.Regex */
         
     | 
| 
      
 55 
     | 
    
         
            +
            .codehilite .s1 { color: #d01040 } /* Literal.String.Single */
         
     | 
| 
      
 56 
     | 
    
         
            +
            .codehilite .ss { color: #990073 } /* Literal.String.Symbol */
         
     | 
| 
      
 57 
     | 
    
         
            +
            .codehilite .bp { color: #999999 } /* Name.Builtin.Pseudo */
         
     | 
| 
      
 58 
     | 
    
         
            +
            .codehilite .vc { color: #008080 } /* Name.Variable.Class */
         
     | 
| 
      
 59 
     | 
    
         
            +
            .codehilite .vg { color: #008080 } /* Name.Variable.Global */
         
     | 
| 
      
 60 
     | 
    
         
            +
            .codehilite .vi { color: #008080 } /* Name.Variable.Instance */
         
     | 
| 
      
 61 
     | 
    
         
            +
            .codehilite .il { color: #009999 } /* Literal.Number.Integer.Long */
         
     | 
| 
         @@ -0,0 +1,59 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            .codehilite .hll { background-color: #ffffcc }
         
     | 
| 
      
 2 
     | 
    
         
            +
            .codehilite .c { color: #999988; font-style: italic } /* Comment */
         
     | 
| 
      
 3 
     | 
    
         
            +
            .codehilite .err { color: #a61717; background-color: #e3d2d2 } /* Error */
         
     | 
| 
      
 4 
     | 
    
         
            +
            .codehilite .k { font-weight: bold } /* Keyword */
         
     | 
| 
      
 5 
     | 
    
         
            +
            .codehilite .o { font-weight: bold } /* Operator */
         
     | 
| 
      
 6 
     | 
    
         
            +
            .codehilite .cm { color: #999988; font-style: italic } /* Comment.Multiline */
         
     | 
| 
      
 7 
     | 
    
         
            +
            .codehilite .cp { color: #999999; font-weight: bold } /* Comment.Preproc */
         
     | 
| 
      
 8 
     | 
    
         
            +
            .codehilite .c1 { color: #999988; font-style: italic } /* Comment.Single */
         
     | 
| 
      
 9 
     | 
    
         
            +
            .codehilite .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
         
     | 
| 
      
 10 
     | 
    
         
            +
            .codehilite .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
         
     | 
| 
      
 11 
     | 
    
         
            +
            .codehilite .ge { font-style: italic } /* Generic.Emph */
         
     | 
| 
      
 12 
     | 
    
         
            +
            .codehilite .gr { color: #aa0000 } /* Generic.Error */
         
     | 
| 
      
 13 
     | 
    
         
            +
            .codehilite .gh { color: #999999 } /* Generic.Heading */
         
     | 
| 
      
 14 
     | 
    
         
            +
            .codehilite .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
         
     | 
| 
      
 15 
     | 
    
         
            +
            .codehilite .go { color: #888888 } /* Generic.Output */
         
     | 
| 
      
 16 
     | 
    
         
            +
            .codehilite .gp { color: #555555 } /* Generic.Prompt */
         
     | 
| 
      
 17 
     | 
    
         
            +
            .codehilite .gs { font-weight: bold } /* Generic.Strong */
         
     | 
| 
      
 18 
     | 
    
         
            +
            .codehilite .gu { color: #aaaaaa } /* Generic.Subheading */
         
     | 
| 
      
 19 
     | 
    
         
            +
            .codehilite .gt { color: #aa0000 } /* Generic.Traceback */
         
     | 
| 
      
 20 
     | 
    
         
            +
            .codehilite .kc { font-weight: bold } /* Keyword.Constant */
         
     | 
| 
      
 21 
     | 
    
         
            +
            .codehilite .kd { font-weight: bold } /* Keyword.Declaration */
         
     | 
| 
      
 22 
     | 
    
         
            +
            .codehilite .kn { font-weight: bold } /* Keyword.Namespace */
         
     | 
| 
      
 23 
     | 
    
         
            +
            .codehilite .kp { font-weight: bold } /* Keyword.Pseudo */
         
     | 
| 
      
 24 
     | 
    
         
            +
            .codehilite .kr { font-weight: bold } /* Keyword.Reserved */
         
     | 
| 
      
 25 
     | 
    
         
            +
            .codehilite .kt { color: #445588; font-weight: bold } /* Keyword.Type */
         
     | 
| 
      
 26 
     | 
    
         
            +
            .codehilite .m { color: #009999 } /* Literal.Number */
         
     | 
| 
      
 27 
     | 
    
         
            +
            .codehilite .s { color: #bb8844 } /* Literal.String */
         
     | 
| 
      
 28 
     | 
    
         
            +
            .codehilite .na { color: #008080 } /* Name.Attribute */
         
     | 
| 
      
 29 
     | 
    
         
            +
            .codehilite .nb { color: #999999 } /* Name.Builtin */
         
     | 
| 
      
 30 
     | 
    
         
            +
            .codehilite .nc { color: #445588; font-weight: bold } /* Name.Class */
         
     | 
| 
      
 31 
     | 
    
         
            +
            .codehilite .no { color: #008080 } /* Name.Constant */
         
     | 
| 
      
 32 
     | 
    
         
            +
            .codehilite .ni { color: #800080 } /* Name.Entity */
         
     | 
| 
      
 33 
     | 
    
         
            +
            .codehilite .ne { color: #990000; font-weight: bold } /* Name.Exception */
         
     | 
| 
      
 34 
     | 
    
         
            +
            .codehilite .nf { color: #990000; font-weight: bold } /* Name.Function */
         
     | 
| 
      
 35 
     | 
    
         
            +
            .codehilite .nn { color: #555555 } /* Name.Namespace */
         
     | 
| 
      
 36 
     | 
    
         
            +
            .codehilite .nt { color: #000080 } /* Name.Tag */
         
     | 
| 
      
 37 
     | 
    
         
            +
            .codehilite .nv { color: #008080 } /* Name.Variable */
         
     | 
| 
      
 38 
     | 
    
         
            +
            .codehilite .ow { font-weight: bold } /* Operator.Word */
         
     | 
| 
      
 39 
     | 
    
         
            +
            .codehilite .w { color: #bbbbbb } /* Text.Whitespace */
         
     | 
| 
      
 40 
     | 
    
         
            +
            .codehilite .mf { color: #009999 } /* Literal.Number.Float */
         
     | 
| 
      
 41 
     | 
    
         
            +
            .codehilite .mh { color: #009999 } /* Literal.Number.Hex */
         
     | 
| 
      
 42 
     | 
    
         
            +
            .codehilite .mi { color: #009999 } /* Literal.Number.Integer */
         
     | 
| 
      
 43 
     | 
    
         
            +
            .codehilite .mo { color: #009999 } /* Literal.Number.Oct */
         
     | 
| 
      
 44 
     | 
    
         
            +
            .codehilite .sb { color: #bb8844 } /* Literal.String.Backtick */
         
     | 
| 
      
 45 
     | 
    
         
            +
            .codehilite .sc { color: #bb8844 } /* Literal.String.Char */
         
     | 
| 
      
 46 
     | 
    
         
            +
            .codehilite .sd { color: #bb8844 } /* Literal.String.Doc */
         
     | 
| 
      
 47 
     | 
    
         
            +
            .codehilite .s2 { color: #bb8844 } /* Literal.String.Double */
         
     | 
| 
      
 48 
     | 
    
         
            +
            .codehilite .se { color: #bb8844 } /* Literal.String.Escape */
         
     | 
| 
      
 49 
     | 
    
         
            +
            .codehilite .sh { color: #bb8844 } /* Literal.String.Heredoc */
         
     | 
| 
      
 50 
     | 
    
         
            +
            .codehilite .si { color: #bb8844 } /* Literal.String.Interpol */
         
     | 
| 
      
 51 
     | 
    
         
            +
            .codehilite .sx { color: #bb8844 } /* Literal.String.Other */
         
     | 
| 
      
 52 
     | 
    
         
            +
            .codehilite .sr { color: #808000 } /* Literal.String.Regex */
         
     | 
| 
      
 53 
     | 
    
         
            +
            .codehilite .s1 { color: #bb8844 } /* Literal.String.Single */
         
     | 
| 
      
 54 
     | 
    
         
            +
            .codehilite .ss { color: #bb8844 } /* Literal.String.Symbol */
         
     | 
| 
      
 55 
     | 
    
         
            +
            .codehilite .bp { color: #999999 } /* Name.Builtin.Pseudo */
         
     | 
| 
      
 56 
     | 
    
         
            +
            .codehilite .vc { color: #008080 } /* Name.Variable.Class */
         
     | 
| 
      
 57 
     | 
    
         
            +
            .codehilite .vg { color: #008080 } /* Name.Variable.Global */
         
     | 
| 
      
 58 
     | 
    
         
            +
            .codehilite .vi { color: #008080 } /* Name.Variable.Instance */
         
     | 
| 
      
 59 
     | 
    
         
            +
            .codehilite .il { color: #009999 } /* Literal.Number.Integer.Long */
         
     | 
| 
         @@ -0,0 +1,22 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            ._element
         
     | 
| 
      
 2 
     | 
    
         
            +
              span._name = item.el_name
         
     | 
| 
      
 3 
     | 
    
         
            +
              - if item.id
         
     | 
| 
      
 4 
     | 
    
         
            +
                span._id ##{item.id}
         
     | 
| 
      
 5 
     | 
    
         
            +
              - if item.class_name.present?
         
     | 
| 
      
 6 
     | 
    
         
            +
                span._classes
         
     | 
| 
      
 7 
     | 
    
         
            +
                  - item.class_name.split(/\s+/).each do |c|
         
     | 
| 
      
 8 
     | 
    
         
            +
                    span._class .#{c}
         
     | 
| 
      
 9 
     | 
    
         
            +
              - if item.attrs.any?
         
     | 
| 
      
 10 
     | 
    
         
            +
                span._attributes<>
         
     | 
| 
      
 11 
     | 
    
         
            +
                  - item.attrs.each do |a|
         
     | 
| 
      
 12 
     | 
    
         
            +
                    span._attr<>
         
     | 
| 
      
 13 
     | 
    
         
            +
                      span._name #{a.name}
         
     | 
| 
      
 14 
     | 
    
         
            +
                      | ="
         
     | 
| 
      
 15 
     | 
    
         
            +
                      span._value title="#{a.value.length > 27 ? a.value.strip : nil}" = a.value
         
     | 
| 
      
 16 
     | 
    
         
            +
                      | "
         
     | 
| 
      
 17 
     | 
    
         
            +
              - if item.text.present?
         
     | 
| 
      
 18 
     | 
    
         
            +
                span._text<> title="#{item.text.length > 27 ? item.text.strip : nil}" = item.text
         
     | 
| 
      
 19 
     | 
    
         
            +
             
     | 
| 
      
 20 
     | 
    
         
            +
              - if item.children.any?
         
     | 
| 
      
 21 
     | 
    
         
            +
                - item.children.each do | child |
         
     | 
| 
      
 22 
     | 
    
         
            +
                  = partial 'glyptotheque/model-outline-element', locals: { item: child }
         
     | 
| 
         @@ -0,0 +1,13 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            .glypto-model-utils
         
     | 
| 
      
 2 
     | 
    
         
            +
              menu
         
     | 
| 
      
 3 
     | 
    
         
            +
                button._tab-toggle(ng-class="{'__active': show == 'outline'}" ng-click="show = show === 'outline' ? null : 'outline'") Outline
         
     | 
| 
      
 4 
     | 
    
         
            +
                button._tab-toggle(ng-class="{'__active': show == 'source'}" ng-click="show = show === 'source' ? null : 'source'") HTML source
         
     | 
| 
      
 5 
     | 
    
         
            +
             
     | 
| 
      
 6 
     | 
    
         
            +
                - if id
         
     | 
| 
      
 7 
     | 
    
         
            +
                  = link_to isolated_url, class: '_isolated', target: '_blank', title: 'Isolated version'
         
     | 
| 
      
 8 
     | 
    
         
            +
                    span> Isolated
         
     | 
| 
      
 9 
     | 
    
         
            +
                    i.fa.fa-external-link
         
     | 
| 
      
 10 
     | 
    
         
            +
             
     | 
| 
      
 11 
     | 
    
         
            +
              ._container
         
     | 
| 
      
 12 
     | 
    
         
            +
                ._panel.glypto-model-source ng-class="{'__shown': show == 'source'}" = code('html') { html }
         
     | 
| 
      
 13 
     | 
    
         
            +
                ._panel.glypto-model-outline ng-class="{'__shown': show == 'outline'}" = outline { html }
         
     | 
| 
         @@ -0,0 +1,26 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            - local_url = current_page.metadata.page[:local_url]
         
     | 
| 
      
 2 
     | 
    
         
            +
            - url = local_url || current_page.url
         
     | 
| 
      
 3 
     | 
    
         
            +
            - title = current_page.metadata.page[:title] || locals[:title] # locals should be first but there's a bug
         
     | 
| 
      
 4 
     | 
    
         
            +
            - description = locals[:description] || current_page.metadata.page[:description]
         
     | 
| 
      
 5 
     | 
    
         
            +
             
     | 
| 
      
 6 
     | 
    
         
            +
            - current_model = current_resource.metadata.models[id]
         
     | 
| 
      
 7 
     | 
    
         
            +
             
     | 
| 
      
 8 
     | 
    
         
            +
            - isolated_url = !!extensions[:directory_indexes] ? url.sub(/\/$/, '/isolated') : url.sub(/\.html$/, "-#{id}-isolated.html")
         
     | 
| 
      
 9 
     | 
    
         
            +
             
     | 
| 
      
 10 
     | 
    
         
            +
            article.glypto-model
         
     | 
| 
      
 11 
     | 
    
         
            +
              .glypto-model-stage
         
     | 
| 
      
 12 
     | 
    
         
            +
                - if current_model.iframe
         
     | 
| 
      
 13 
     | 
    
         
            +
                  iframe id="iframe-#{id}" src="#{url_for(isolated_url)}" height="0" width="100%" frameborder="0" scrolling="no"
         
     | 
| 
      
 14 
     | 
    
         
            +
                - else
         
     | 
| 
      
 15 
     | 
    
         
            +
                  figure = current_model.html
         
     | 
| 
      
 16 
     | 
    
         
            +
             
     | 
| 
      
 17 
     | 
    
         
            +
              = partial 'glyptotheque/model-utils',
         
     | 
| 
      
 18 
     | 
    
         
            +
                locals: { html: html, id: id, isolated_url: isolated_url }
         
     | 
| 
      
 19 
     | 
    
         
            +
             
     | 
| 
      
 20 
     | 
    
         
            +
              - unless locals[:iframe]
         
     | 
| 
      
 21 
     | 
    
         
            +
                - stylesheets = current_page.metadata.page[:stylesheet] || current_page.metadata.page[:stylesheets] || current_page.data[:stylesheet] || current_page.data[:stylesheets]
         
     | 
| 
      
 22 
     | 
    
         
            +
                - javascripts = current_page.metadata.page[:javascript] || current_page.metadata.page[:javascripts] || current_page.data[:javascript] || current_page.data[:javascripts]
         
     | 
| 
      
 23 
     | 
    
         
            +
                - if stylesheets
         
     | 
| 
      
 24 
     | 
    
         
            +
                  - content_for :stylesheets, include_stylesheets(stylesheets)
         
     | 
| 
      
 25 
     | 
    
         
            +
                - if javascripts
         
     | 
| 
      
 26 
     | 
    
         
            +
                  - content_for :javascripts, include_javascripts(javascripts)
         
     | 
| 
         @@ -0,0 +1,31 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            javascript:
         
     | 
| 
      
 2 
     | 
    
         
            +
              // If necessary insert a placeholder before the real menu is created
         
     | 
| 
      
 3 
     | 
    
         
            +
              if(!store.get('glypto-menu-hidden')) {
         
     | 
| 
      
 4 
     | 
    
         
            +
                var e = document.createElement('div');
         
     | 
| 
      
 5 
     | 
    
         
            +
                e.id = 'glypto-nav-placeholder';
         
     | 
| 
      
 6 
     | 
    
         
            +
                document.body.insertBefore(e, document.body.childNodes[0]);
         
     | 
| 
      
 7 
     | 
    
         
            +
              }
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
      
 9 
     | 
    
         
            +
            glypto-menu
         
     | 
| 
      
 10 
     | 
    
         
            +
             
     | 
| 
      
 11 
     | 
    
         
            +
            / Use inline templates to avoid dealing with relative templateUrls
         
     | 
| 
      
 12 
     | 
    
         
            +
             
     | 
| 
      
 13 
     | 
    
         
            +
            script type="text/ng-template" id="glyptotheque/menu.html"
         
     | 
| 
      
 14 
     | 
    
         
            +
              nav.glypto-nav ng-class="{'s-hidden' : navIsHidden}"
         
     | 
| 
      
 15 
     | 
    
         
            +
                button.glypto-nav-toggle ng-click="toggle()" title="Toggle menu: Command + Shift + E"
         
     | 
| 
      
 16 
     | 
    
         
            +
                = link_to yield_content(:page_title), url_for('/index.html'), class: '_logo'
         
     | 
| 
      
 17 
     | 
    
         
            +
                .search: input.mousetrap(ng-model="search" type="search" placeholder="Search (/ to focus)" glypto-search)
         
     | 
| 
      
 18 
     | 
    
         
            +
             
     | 
| 
      
 19 
     | 
    
         
            +
                glypto-menu-tree items="items" filter="search"
         
     | 
| 
      
 20 
     | 
    
         
            +
             
     | 
| 
      
 21 
     | 
    
         
            +
             
     | 
| 
      
 22 
     | 
    
         
            +
            script type="text/ng-template" id="glyptotheque/menu-tree.html"
         
     | 
| 
      
 23 
     | 
    
         
            +
              ul
         
     | 
| 
      
 24 
     | 
    
         
            +
                glypto-menu-node ng-repeat="node in items|filter:filter"
         
     | 
| 
      
 25 
     | 
    
         
            +
             
     | 
| 
      
 26 
     | 
    
         
            +
             
     | 
| 
      
 27 
     | 
    
         
            +
            script type="text/ng-template" id="glyptotheque/menu-node.html"
         
     | 
| 
      
 28 
     | 
    
         
            +
              li ng-class="{'_index': node.children, 's-selected': isSelected}"
         
     | 
| 
      
 29 
     | 
    
         
            +
                = link_to '{{node.path}}'
         
     | 
| 
      
 30 
     | 
    
         
            +
                  | {{node.title}}
         
     | 
| 
      
 31 
     | 
    
         
            +
                  span._count ng-if="node.children.length" {{node.children.length}}
         
     | 
| 
         @@ -0,0 +1,14 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            - resources_for(current_page.url, exclude_indexes: true, sort_by: :nav_order).each do |r|
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
              - current_page.add_metadata({ page: { \
         
     | 
| 
      
 4 
     | 
    
         
            +
                  title: r.data.title,
         
     | 
| 
      
 5 
     | 
    
         
            +
                  description: r.data.description,
         
     | 
| 
      
 6 
     | 
    
         
            +
                  local_url: r.url,
         
     | 
| 
      
 7 
     | 
    
         
            +
                  stylesheets: r.data.stylesheet || r.data.stylesheets,
         
     | 
| 
      
 8 
     | 
    
         
            +
                  javascripts: r.data.javascript || r.data.javascripts,
         
     | 
| 
      
 9 
     | 
    
         
            +
                  iframe: r.metadata.page[:iframe] \
         
     | 
| 
      
 10 
     | 
    
         
            +
                } })
         
     | 
| 
      
 11 
     | 
    
         
            +
             
     | 
| 
      
 12 
     | 
    
         
            +
              .glypto-section
         
     | 
| 
      
 13 
     | 
    
         
            +
                h2.glypto-title = link_to r.data.title, r.url
         
     | 
| 
      
 14 
     | 
    
         
            +
                = partial r.url.sub(/\/$/, '.html')
         
     | 
| 
         @@ -0,0 +1 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            <%= resource_tree('/', data_fields: [:title, :tags], sort_by: :nav_order).to_json -%>
         
     | 
| 
         @@ -0,0 +1,19 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            - content_for :page_title,  'Glyptotheque'
         
     | 
| 
      
 2 
     | 
    
         
            +
            - content_for :ng_app,      'glyptotheque'
         
     | 
| 
      
 3 
     | 
    
         
            +
            - content_for :stylesheets,  stylesheet_link_tag('glyptotheque')
         
     | 
| 
      
 4 
     | 
    
         
            +
             
     | 
| 
      
 5 
     | 
    
         
            +
            = wrap_layout :layout do
         
     | 
| 
      
 6 
     | 
    
         
            +
              - if resource_tree('/').any?
         
     | 
| 
      
 7 
     | 
    
         
            +
                = partial 'glyptotheque/nav'
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
      
 9 
     | 
    
         
            +
              main.glyptotheque
         
     | 
| 
      
 10 
     | 
    
         
            +
                - if current_page.data.title
         
     | 
| 
      
 11 
     | 
    
         
            +
                  header
         
     | 
| 
      
 12 
     | 
    
         
            +
                    h1 = current_page.data.title
         
     | 
| 
      
 13 
     | 
    
         
            +
                = yield
         
     | 
| 
      
 14 
     | 
    
         
            +
             
     | 
| 
      
 15 
     | 
    
         
            +
              javascript:
         
     | 
| 
      
 16 
     | 
    
         
            +
                APP_CONTEXT = {
         
     | 
| 
      
 17 
     | 
    
         
            +
                  sitemap: #{partial 'glyptotheque/sitemap.json'},
         
     | 
| 
      
 18 
     | 
    
         
            +
                  current_url: "#{current_page.url}"
         
     | 
| 
      
 19 
     | 
    
         
            +
                }
         
     | 
| 
         @@ -0,0 +1,19 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            doctype html
         
     | 
| 
      
 2 
     | 
    
         
            +
            html
         
     | 
| 
      
 3 
     | 
    
         
            +
              head
         
     | 
| 
      
 4 
     | 
    
         
            +
                meta charset='utf-8'
         
     | 
| 
      
 5 
     | 
    
         
            +
                title = current_page.data.title || yield_content(:page_title) || resource_file(current_page)
         
     | 
| 
      
 6 
     | 
    
         
            +
                meta name='viewport' content='width=device-width'
         
     | 
| 
      
 7 
     | 
    
         
            +
                = yield_content :stylesheets
         
     | 
| 
      
 8 
     | 
    
         
            +
                = include_stylesheets(current_page.data.stylesheets || current_page.data.stylesheet)
         
     | 
| 
      
 9 
     | 
    
         
            +
             
     | 
| 
      
 10 
     | 
    
         
            +
              body class="#{yield_content(:body_class)}"
         
     | 
| 
      
 11 
     | 
    
         
            +
                - id = current_resource.metadata.options.id
         
     | 
| 
      
 12 
     | 
    
         
            +
                - current_model = current_resource.metadata.models[id]
         
     | 
| 
      
 13 
     | 
    
         
            +
             
     | 
| 
      
 14 
     | 
    
         
            +
                = current_model.html
         
     | 
| 
      
 15 
     | 
    
         
            +
             
     | 
| 
      
 16 
     | 
    
         
            +
                = javascript_include_tag  'iframe-js'
         
     | 
| 
      
 17 
     | 
    
         
            +
                = yield_content :javascripts
         
     | 
| 
      
 18 
     | 
    
         
            +
                = include_javascripts(current_page.data.javascripts || current_page.data.javascript)
         
     | 
| 
      
 19 
     | 
    
         
            +
                = yield_content :post_body
         
     | 
| 
         @@ -0,0 +1,18 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            doctype html
         
     | 
| 
      
 2 
     | 
    
         
            +
            html ng-app=(yield_content(:ng_app))
         
     | 
| 
      
 3 
     | 
    
         
            +
              head
         
     | 
| 
      
 4 
     | 
    
         
            +
                meta charset='utf-8'
         
     | 
| 
      
 5 
     | 
    
         
            +
                title = current_page.data.title || yield_content(:page_title) || resource_file(current_page)
         
     | 
| 
      
 6 
     | 
    
         
            +
                meta name='viewport' content='width=device-width'
         
     | 
| 
      
 7 
     | 
    
         
            +
                = stylesheet_link_tag 'main'
         
     | 
| 
      
 8 
     | 
    
         
            +
                = stylesheet_link_tag '//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css'
         
     | 
| 
      
 9 
     | 
    
         
            +
                = yield_content :stylesheets
         
     | 
| 
      
 10 
     | 
    
         
            +
                = javascript_include_tag 'head-js'
         
     | 
| 
      
 11 
     | 
    
         
            +
             
     | 
| 
      
 12 
     | 
    
         
            +
              body class="#{yield_content(:body_class)}"
         
     | 
| 
      
 13 
     | 
    
         
            +
             
     | 
| 
      
 14 
     | 
    
         
            +
                = yield
         
     | 
| 
      
 15 
     | 
    
         
            +
             
     | 
| 
      
 16 
     | 
    
         
            +
                = yield_content :javascripts
         
     | 
| 
      
 17 
     | 
    
         
            +
                = javascript_include_tag  'app'
         
     | 
| 
      
 18 
     | 
    
         
            +
                = yield_content :post_body
         
     |