Sha256: cf62deedf25f3fdf0981c95b37fc120f698838cb7d4877342d665b913abbff0a
Contents?: true
Size: 1.68 KB
Versions: 3
Compression:
Stored size: 1.68 KB
Contents
<!DOCTYPE html> <html> <head> <title>Content</title> <meta charset="UTF-8"/> <link rel="icon" type="image/png" href="../../_static/icon.png"/> <link rel="stylesheet" href="../../_static/site.css" type="text/css" media="screen"/> <script src="../../_components/jquery/jquery.min.js"></script> <script src="../../_components/jquery-syntax/jquery.syntax.min.js"></script> <script type="text/javascript"> //<![CDATA[ jQuery(function($) { $.syntax(); }); //]]> </script> </head> <body class="show"> <nav> › <a href="../../index.html">Wiki</a> › <span>Middleware</span> › <a href="index.html">Content</a></nav> <main> <h1 id="content">Content</h1> <p>A tag based content generation system which integrates nicely with HTML5. Supports structures which separate generic page templates from dynamically generated content in an easy and consistent way.</p> <pre><code class="language-ruby">use Utopia::Content, cache_templates: (RACK_ENV == :production) </code></pre> <p>A basic template <code>create.xnode</code> looks something like:</p> <pre><code class="language-trenni"><content:page> <content:heading>Create User</content:heading> <form action="#"> <input name="name" /> <input type="submit" /> </form> </content:page> </code></pre> <p>This template would typically be designed with supporting <code>_page.xnode</code> and <code>_heading.xnode</code> in the same directory or, more typically, somewhere further up the directory hierarchy.</p> </main> <footer> Last Modified: 2020-04-28 11:35:36 +1200 — middleware/content/index.md </footer> </body> </html>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
utopia-2.15.1 | docs/middleware/content/index.html |
utopia-2.15.0 | docs/middleware/content/index.html |
utopia-2.14.0 | docs/middleware/content/index.html |