Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

updates to docs

Signed-off-by: Chris Granger <ibdknox@gmail.com>
  • Loading branch information...
commit 2d1b9ac7da1029053614a3e5871a61578691a644 1 parent 9ec370f
@ibdknox authored
View
4 noir/api-index.html
@@ -120,8 +120,8 @@ <h2 id="G"><span id="section-head">G</span></h2>
</div><div id="index-body">
<h2 id="H"><span id="section-head">H</span></h2>
<pre>
-<span id="section-content"> <a href="noir.validation-api.html#noir.validation/has-value?">has-value?</a><span id="line-content"> function noir.validation Returns true if v is truthy and it is not an empty...
-</span></span><span id="section-content"> <a href="noir.validation-api.html#noir.validation/has-values?">has-values?</a><span id="line-content"> function noir.validation Returns true if the entire collection has-value?.
+<span id="section-content"> <a href="noir.validation-api.html#noir.validation/has-value?">has-value?</a><span id="line-content"> function noir.validation Returns true if v is truthy and not an empty strin...
+</span></span><span id="section-content"> <a href="noir.validation-api.html#noir.validation/has-values?">has-values?</a><span id="line-content"> function noir.validation Returns true if all members of the collection has-...
</span></span></pre>
</div><div id="index-body">
<h2 id="I"><span id="section-head">I</span></h2>
View
4 noir/noir.cookies-api.html
@@ -95,8 +95,8 @@ <h2 id="noir.cookies/put!">put!</h2>
<pre id="var-usage">Usage: (put! k v)
</pre>
<pre id="var-docstr">Add a new cookie whose name is k and has the value v. If v is a string
-a cookie map is created with :path '/'. To set custom attributes, such as,
-expires provide a map as v.</pre>
+a cookie map is created with :path '/'. To set custom attributes, such as
+"expires", provide a map as v.</pre>
View
2  noir/noir.core-api.html
@@ -101,7 +101,7 @@ <h2 id="noir.core/defpartial">defpartial</h2>
<span id="var-type">macro</span><br />
<pre id="var-usage">Usage: (defpartial fname params &amp; body)
</pre>
- <pre id="var-docstr">Create a function that returns html using hiccup. The function is then callable using the given name.</pre>
+ <pre id="var-docstr">Create a function that returns html using hiccup. The function is callable with the given name.</pre>
View
8 noir/noir.validation-api.html
@@ -127,7 +127,7 @@ <h2 id="noir.validation/has-value?">has-value?</h2>
<span id="var-type">function</span><br />
<pre id="var-usage">Usage: (has-value? v)
</pre>
- <pre id="var-docstr">Returns true if v is truthy and it is not an empty string.</pre>
+ <pre id="var-docstr">Returns true if v is truthy and not an empty string.</pre>
@@ -138,7 +138,7 @@ <h2 id="noir.validation/has-values?">has-values?</h2>
<span id="var-type">function</span><br />
<pre id="var-usage">Usage: (has-values? coll)
</pre>
- <pre id="var-docstr">Returns true if the entire collection has-value?</pre>
+ <pre id="var-docstr">Returns true if all members of the collection has-value? This works on maps as well.</pre>
@@ -205,7 +205,7 @@ <h2 id="noir.validation/rule">rule</h2>
<pre id="var-usage">Usage: (rule passed? [field error])
</pre>
<pre id="var-docstr">If the passed? condition is not met, add the error text to the given field:
-(rule (not-nil? nil) [:username "Usernames must have a value."])</pre>
+(rule (not-nil? username) [:username "Usernames must have a value."])</pre>
@@ -217,7 +217,7 @@ <h2 id="noir.validation/set-error">set-error</h2>
<pre id="var-usage">Usage: (set-error field error)
</pre>
<pre id="var-docstr">Explicitly set an error for the given field. This can be used to
-create complex error case, such as in a multi-step login process.</pre>
+create complex error cases, such as in a multi-step login process.</pre>
Please sign in to comment.
Something went wrong with that request. Please try again.