all repos — h3rald @ 399ce200934062b5782edfec44253bede829fe1f

The sources of

Minor updates.
Wed, 22 Sep 2010 15:09:57 +0200




M content/articles/h3rald-81.glyphcontent/articles/h3rald-81.glyph

@@ -57,5 +57,6 @@ Besides appearence, the new site also features some improvements in its underlying business logic. In particular:

* Better nanoc "Rules": * Improved "Glyph":/glyph/ integration, by extending nanoc "RuleContext": * Minor updates to the custom "Rake tasks": +* "Disqus": comments ] ]
M content/glyph/book/compiling/programmatic_usage.htmlcontent/glyph/book/compiling/programmatic_usage.html

@@ -72,7 +72,7 @@ <aside class="tip">

<span class="note-title">Tip</span><p>For an example on how to use Glyph programmatically (specifically in conjunction with the <a href="">nanoc</a> static site generator), see <a href=""> source code</a>, in particular:</p> <ul> <li><a href="">lib/glyph_filter.rb</a> &#8212; using the <code>Glyph#filter</code> method.</li> - <li><a href="">Rules</a> &#8212; using the <code>Glyph#compile</code> method to generate <span class="caps">PDF</span> files.</li> + <li><a href="">lib/glyph_context.rb</a> &#8212; using the <code>Glyph#compile</code> method to generate <span class="caps">PDF</span> files.</li> </ul> </aside>
M content/glyph/book/text_editing/evaluation.htmlcontent/glyph/book/text_editing/evaluation.html

@@ -64,7 +64,7 @@ <nav><a href="/glyph/book/text_editing/inclusions.html">Including Files and Snippets &larr;</a><a href="/glyph/book/index.html">Contents</a><a href="/glyph/book/text_editing/conditionals.html">&rarr; Conditional Macros</a></nav>

<p>Glyph Language is not a full-blown programming language and it is currently not Turing-complete (it does not provide loops). However, it is possible to evaluate simple ruby code snippets using the <code>ruby</code> macro (aliased to <code>%</code>), like this:</p> <ul> <li><code>%[2 + 2]</code> &rarr; 4</li> - <li><code>%[]</code> &rarr; Wed Sep 22 13:49:51 +0200 2010</li> + <li><code>%[]</code> &rarr; Wed Sep 22 15:08:27 +0200 2010</li> <li><code>%[Glyph::VERSION]</code> &rarr; 0.4.1</li> </ul> <p>The scope for the code evaluation is the Kernel module, (with all inclusions required by Glyph itself).</p>