all repos — h3rald @ 399ce200934062b5782edfec44253bede829fe1f

The sources of https://h3rald.com

Minor updates.
h3rald h3rald@h3rald.com
Wed, 22 Sep 2010 15:09:57 +0200
commit

399ce200934062b5782edfec44253bede829fe1f

parent

41037ec21d17bbde4ee238ca44995920fcbd91a8

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":http://github.com/h3rald/h3rald/blob/master/Rules * Improved "Glyph":/glyph/ integration, by extending nanoc "RuleContext":http://github.com/h3rald/h3rald/blob/master/lib/glyph_context.rb * Minor updates to the custom "Rake tasks":http://github.com/h3rald/h3rald/blob/master/tasks/site.rake +* "Disqus":http://disqus.com/overview/ 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="http://nanoc.stoneship.org/">nanoc</a> static site generator), see <a href="http://github.com/h3rald/h3rald">h3rald.com source code</a>, in particular:</p> <ul> <li><a href="http://github.com/h3rald/h3rald/blob/master/lib/glyph_filter.rb">lib/glyph_filter.rb</a> &#8212; using the <code>Glyph#filter</code> method.</li> - <li><a href="http://github.com/h3rald/h3rald/blob/master/Rules">Rules</a> &#8212; using the <code>Glyph#compile</code> method to generate <span class="caps">PDF</span> files.</li> + <li><a href="http://github.com/h3rald/h3rald/blob/master/lib/glyph_context.rb">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>%[Time.now]</code> &rarr; Wed Sep 22 13:49:51 +0200 2010</li> + <li><code>%[Time.now]</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>