Permalink
Browse files

remove rdoc

  • Loading branch information...
defunkt committed Mar 6, 2010
1 parent 1c28a78 commit eb3958460f7a2c0c6b7bd57d9560fbc31bc30c9f
View
Binary file not shown.
View

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -1,162 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
- <title>Mustache::Context</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <link rel="stylesheet" href="../../css/reset.css" type="text/css" media="screen" />
- <link rel="stylesheet" href="../../css/main.css" type="text/css" media="screen" />
- <script src="../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../js/main.js" type="text/javascript" charset="utf-8"></script>
-</head>
-
-<body>
- <div class="banner">
- <h1>
- <span class="type">Class</span>
- Mustache::Context
-
- <span class="parent">&lt;
-
- Hash
-
- </span>
-
- </h1>
- <ul class="files">
-
- <li><a href="../../files/lib/mustache/context_rb.html">lib/mustache/context.rb</a></li>
-
- </ul>
- </div>
- <div id="bodyContent">
- <div id="content">
-
- <div class="description">
- <p>
-A <a href="Context.html">Context</a> represents the context which a <a
-href="../Mustache.html">Mustache</a> template is executed within. All <a
-href="../Mustache.html">Mustache</a> tags reference keys in the <a
-href="Context.html">Context</a>.
-</p>
-
- </div>
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Methods</div>
- <dl class="methods">
-
- <dt>#</dt>
- <dd>
- <ul>
-
- <li><a href="#M000001">[]</a></li>
-
- </ul>
- </dd>
-
- <dt>N</dt>
- <dd>
- <ul>
-
- <li><a href="#M000000">new</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Class Public methods</div>
-
- <div class="method">
- <div class="title" id="M000000">
-
- <a name="M000000"></a><b>new</b>(mustache)
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('M000000_source')" id="l_M000000_source">show</a>
-
- | <a href="http://github.com/defunkt/mustache/blob/473b32e981e86032ca1025ef6a8f3a3aa0cfb471/lib/mustache/context.rb#L15" target="_blank" class="github_url">on GitHub</a>
-
- </p>
- <div id="M000000_source" class="dyn-source">
- <pre><span class="ruby-comment cmt"># File lib/mustache/context.rb, line 15</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">mustache</span>)
- <span class="ruby-ivar">@mustache</span> = <span class="ruby-identifier">mustache</span>
- <span class="ruby-keyword kw">super</span>()
- <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="sectiontitle">Instance Public methods</div>
-
- <div class="method">
- <div class="title" id="M000001">
-
- <a name="M000001"></a><b>[]</b>(name)
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('M000001_source')" id="l_M000001_source">show</a>
-
- | <a href="http://github.com/defunkt/mustache/blob/473b32e981e86032ca1025ef6a8f3a3aa0cfb471/lib/mustache/context.rb#L20" target="_blank" class="github_url">on GitHub</a>
-
- </p>
- <div id="M000001_source" class="dyn-source">
- <pre><span class="ruby-comment cmt"># File lib/mustache/context.rb, line 20</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-identifier">name</span>)
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">name</span>)
- <span class="ruby-keyword kw">super</span>
- <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">name</span>.<span class="ruby-identifier">to_s</span>)
- <span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">name</span>.<span class="ruby-identifier">to_s</span>)
- <span class="ruby-keyword kw">elsif</span> <span class="ruby-ivar">@mustache</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">name</span>)
- <span class="ruby-ivar">@mustache</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">name</span>)
- <span class="ruby-keyword kw">elsif</span> <span class="ruby-ivar">@mustache</span>.<span class="ruby-identifier">raise_on_context_miss?</span>
- <span class="ruby-identifier">raise</span> <span class="ruby-constant">ContextMiss</span>.<span class="ruby-identifier">new</span>(<span class="ruby-node">&quot;Can't find #{name} in #{@mustache.inspect}&quot;</span>)
- <span class="ruby-keyword kw">else</span>
- <span class="ruby-keyword kw">nil</span>
- <span class="ruby-keyword kw">end</span>
- <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
-</div>
- </div>
- </body>
-</html>
@@ -1,78 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
- <title>Mustache::ContextMiss</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <link rel="stylesheet" href="../../css/reset.css" type="text/css" media="screen" />
- <link rel="stylesheet" href="../../css/main.css" type="text/css" media="screen" />
- <script src="../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../js/main.js" type="text/javascript" charset="utf-8"></script>
-</head>
-
-<body>
- <div class="banner">
- <h1>
- <span class="type">Class</span>
- Mustache::ContextMiss
-
- <span class="parent">&lt;
-
- RuntimeError
-
- </span>
-
- </h1>
- <ul class="files">
-
- <li><a href="../../files/lib/mustache/context_rb.html">lib/mustache/context.rb</a></li>
-
- </ul>
- </div>
- <div id="bodyContent">
- <div id="content">
-
- <div class="description">
- <p>
-A <a href="ContextMiss.html">ContextMiss</a> is raised whenever a
-tag&#8217;s target can not be found in the current context if `<a
-href="../Mustache.html#M000041">Mustache#raise_on_context_miss?</a>` is set
-to true.
-</p>
-<p>
-For example, if your View class does not respond to `music` but your
-template contains a `{{template}}` tag this exception will be raised.
-</p>
-<p>
-By default it is not raised. See <a
-href="../Mustache.html#raise_on_context_miss">Mustache.raise_on_context_miss</a>.
-</p>
-
- </div>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-</div>
- </div>
- </body>
-</html>
@@ -1,154 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
- <title>Mustache::Sinatra</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <link rel="stylesheet" href="../../css/reset.css" type="text/css" media="screen" />
- <link rel="stylesheet" href="../../css/main.css" type="text/css" media="screen" />
- <script src="../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../js/main.js" type="text/javascript" charset="utf-8"></script>
-</head>
-
-<body>
- <div class="banner">
- <h1>
- <span class="type">Module</span>
- Mustache::Sinatra
-
- </h1>
- <ul class="files">
-
- <li><a href="../../files/lib/mustache/sinatra_rb.html">lib/mustache/sinatra.rb</a></li>
-
- </ul>
- </div>
- <div id="bodyContent">
- <div id="content">
-
- <div class="description">
- <p>
-Support for <a href="../Mustache.html">Mustache</a> in your <a
-href="Sinatra.html">Sinatra</a> app.
-</p>
-<pre>
- require 'mustache/sinatra'
-
- class Hurl &lt; Sinatra::Base
- register Mustache::Sinatra
-
- # Should be the path to your .mustache template files.
- set :views, &quot;path/to/mustache/templates&quot;
-
- # Should be the path to your .rb Mustache view files.
- # Only needed if different from the `views` setting
- set :mustaches, &quot;path/to/mustache/views&quot;
-
- # This tells Mustache where to look for the Views module,
- # under which your View classes should live. By default it's
- # the class of your app - in this case `Hurl`. That is, for an :index
- # view Mustache will expect Hurl::Views::Index by default.
-
- # If our Sinatra::Base subclass was instead Hurl::App,
- # we'd want to do `set :namespace, Hurl::App`
- set :namespace, Hurl
-
- get '/stats' do
- mustache :stats
- end
- end
-</pre>
-<p>
-As noted above, <a href="../Mustache.html">Mustache</a> will look for
-`Hurl::Views::Index` when `mustache :index` is called.
-</p>
-<p>
-If no `Views::Stats` class exists <a href="../Mustache.html">Mustache</a>
-will render the template file directly.
-</p>
-<p>
-You can indeed use layouts with this library. Where you&#8217;d normally
-<%= yield %> you instead {{{yield}}} - the body of the subview is set to
-the `yield` variable and made available to you.
-</p>
-
- </div>
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Methods</div>
- <dl class="methods">
-
- <dt>R</dt>
- <dd>
- <ul>
-
- <li><a href="#M000004">registered</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
-
-
-
-
- <div class="sectiontitle">Classes and Modules</div>
- <ul>
-
- <li><span class="type">MODULE</span> <a href="Sinatra/Helpers.html">Mustache::Sinatra::Helpers</a></li>
-
- </ul>
-
-
-
-
-
-
-
- <div class="sectiontitle">Class Public methods</div>
-
- <div class="method">
- <div class="title" id="M000004">
-
- <a name="M000004"></a><b>registered</b>(app)
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('M000004_source')" id="l_M000004_source">show</a>
-
- | <a href="http://github.com/defunkt/mustache/blob/f47f8fa47ade4f9c98594c850d757a98a7c7d77c/lib/mustache/sinatra.rb#L93" target="_blank" class="github_url">on GitHub</a>
-
- </p>
- <div id="M000004_source" class="dyn-source">
- <pre><span class="ruby-comment cmt"># File lib/mustache/sinatra.rb, line 93</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">registered</span>(<span class="ruby-identifier">app</span>)
- <span class="ruby-identifier">app</span>.<span class="ruby-identifier">helpers</span> <span class="ruby-constant">Mustache</span><span class="ruby-operator">::</span><span class="ruby-constant">Sinatra</span><span class="ruby-operator">::</span><span class="ruby-constant">Helpers</span>
- <span class="ruby-identifier">app</span>.<span class="ruby-identifier">set</span> <span class="ruby-identifier">:mustaches</span>, <span class="ruby-operator">::</span><span class="ruby-constant">Sinatra</span><span class="ruby-operator">::</span><span class="ruby-constant">Base</span>.<span class="ruby-identifier">views</span>
- <span class="ruby-identifier">app</span>.<span class="ruby-identifier">set</span> <span class="ruby-identifier">:namespace</span>, <span class="ruby-identifier">app</span>
- <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
-</div>
- </div>
- </body>
-</html>
Oops, something went wrong.

0 comments on commit eb39584

Please sign in to comment.