Permalink
Commits on Jul 25, 2011
  1. Added ability to specify a version of a snippet.

    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    !!! CONTEXT
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    Wheat currently supports snippets that are demarcated by a newline < > newline.
    
    Inside of the snippet's brackets, you can specify the relative path from one of
    Wheat's markdown articles to a code snippet. In addition to that, wheat can
    handle those snippets in different ways.
    
    A snippet ending in a *, for example foo/bar.baz*. Will be executed and the
    result shown beneath the snippet in final rendering.
    
    A snippet ending in a #label will look inside the snippet file for a comment
    and display from that #forward.
    
    For instance, foo/bar.baz#doAwesomeStuff will look for:
    
     //doAwesomeStuff
     doSomethingAwesome();
    
     //doSomethingLessAwesome
     doLesserThings();
    
    and diaplay just the doSomethingAwesome.
    
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    !!! CHANGE MOTIVIATION
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    This change proposes the addition of an additional syntax, :SHA which will
    get a specific version of a file in Wheat's git repository.
    
    One would want this when building out a demo application step by step. If you
    make a project directory under articles and commit to it piece by piece, it is
    very natural as a developer.
    
    On the other hand, right now when using Wheat, a developer often makes multiple
    copies of the same file for instance app.js, app2.js, app-final.js to use as
    snippets during different stages of the article. If you're not careful, this
    can get confusing (speaking from experience here using Wheat) especially if
    you go to update an article you wrote a while back.
    
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    !!! CHANGE USAGE
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    With this change, you can use the below as the content of a snippet:
    
    foo/bar.baz:aaaaabbbbbcccccdddddeeeeefffff1111100040
    and
    foo/bar.baz:ffffffffffffffffffffffffffffffffff00040
    
    and get different versions of the same file from git.
    
    When using this feature, you must specify the full 40 character git SHA and it
    does not work with # (although it does work with *) -- the theory being do the
    smallest change possible.
    committed Jul 25, 2011
Commits on Mar 5, 2011
  1. @creationix

    Bump again

    Change-Id: I99d0f2c917407ab97173ad775e28a8d97f771e60
    creationix committed Mar 5, 2011
  2. @creationix

    Bump Version

    Change-Id: Ie96d238bd9a9962c3b33e41c6cbf12849a433a16
    creationix committed Mar 5, 2011
  3. @creationix

    Update to work no node v0.4.x

    Change-Id: I4e227a08fea698e56c09f94c4354ebe901283f01
    creationix committed Mar 5, 2011
Commits on Feb 23, 2011
  1. Merge changes

    Change-Id: I7c469633613fa3a0b18281ca42ffc13fa85adcb0
    Tim Caswell committed Feb 23, 2011
  2. Merge branch 'v0.3.0-compatibility' of https://github.com/TooTallNate…

    …/wheat into TooTallNate-v0.3.0-compatibility
    Tim Caswell committed Feb 23, 2011
Commits on Feb 4, 2011
  1. @ppejovic

    typo on link

    ppejovic committed with Tim Caswell Feb 4, 2011
  2. @ppejovic

    Updated README with Graphviz details

    ppejovic committed with Tim Caswell Feb 4, 2011
Commits on Nov 2, 2010
  1. @TooTallNate

    Detect for 'util', and use it if it's there. Otherwise fall back to '…

    …sys'.
    
    This is the recommended check by isaacs.
    TooTallNate committed Nov 2, 2010
  2. @TooTallNate

    Fix 'stringToBuffer'.

    `Buffer#utf8Write(str)`, was private API, and seems to have been removed in Node >v0.3.0.
    Using `Buffer#write(str, 'utf8')` is the preferred way, and remains backwards compatible.
    TooTallNate committed Nov 2, 2010
  3. @TooTallNate @creationix

    Check for the existence of the 'categories' array, instead of assumin…

    …g it's there.
    
    This correct Wheat from throwing exceptions when an article was written with no categories.
    TooTallNate committed with creationix Nov 2, 2010
  4. @creationix

    Bump Version.

    creationix committed Nov 2, 2010
Commits on Oct 30, 2010
  1. @acmarques
Commits on Oct 29, 2010
  1. @acmarques
Commits on Oct 28, 2010
  1. @acmarques
Commits on Oct 5, 2010
  1. @creationix

    Add explicit License.

    creationix committed Oct 5, 2010
Commits on Sep 22, 2010
  1. @creationix

    Bump Version.

    creationix committed Sep 22, 2010
  2. @TooTallNate @creationix

    Pass through to the next 'connect' layer on an ENOENT error (i.e. req…

    …uested file does not exist).
    
    This matches the behavior of the 'staticProvider' middleware in 'connect', and will also prevent unnecessary errors being spewed to the server's stderr, when it should really only respond with a 404.
    TooTallNate committed with creationix Sep 22, 2010
Commits on Sep 1, 2010
  1. @creationix

    Bump version.

    creationix committed Sep 1, 2010
  2. @isaacs

    Add %z for timezone offset

    isaacs committed Sep 1, 2010
  3. @isaacs
  4. @isaacs

    Add %u for milliseconds

    isaacs committed Sep 1, 2010
  5. @isaacs
  6. @isaacs
  7. @creationix
  8. @creationix

    Add a package.json for npm.

    creationix committed Sep 1, 2010
Commits on Jul 27, 2010
  1. @creationix
  2. @creationix
Commits on Jul 8, 2010
  1. @creationix
  2. @creationix
Commits on Jul 7, 2010
  1. Remove emdebbed dependencies

    Tim Caswell committed Jul 7, 2010
Commits on Jun 18, 2010
  1. @creationix

    Fix a bad link.

    creationix committed Jun 18, 2010
Commits on Jun 16, 2010
  1. @creationix

    Add connect as a submodule.

    creationix committed Jun 16, 2010
  2. @creationix
  3. @creationix

    Use a local mime database.

    creationix committed Jun 16, 2010