Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove extra files

  • Loading branch information...
commit 1149b24944952b5c6d1f4b2415c2e8f139429eb4 1 parent d64ecfe
@raycmorgan authored
Showing with 0 additions and 78 deletions.
  1. +0 −6 test.txt
  2. +0 −72 try.js
View
6 test.txt
@@ -1,6 +0,0 @@
-Hello World
-{{#person}}
-\/\\tHow are you, {{#person}}{{name}}{{/person}}?
-{{/person}}
-Goodbye.
-
View
72 try.js
@@ -1,72 +0,0 @@
-var util = require('util'),
- mu = require('./lib/mu');
-
-var template = "ÏHello{{#user}} {{name}}{{/user}}! " +
- "Hello{{^user}} {{name}}{{/user}}! " +
- "Names: {{#names}}{{name}} {{/names}} " +
- "{{tag}} - {{{tag}}} " +
- "{{goodness}} {{#admin}}(is admin){{/admin}}" +
- "{{>foo.html}}" + '/\\/\\//';
-
-// TODO: Newlines break things
-
-//var tokens = mu.tokenize(template);
-var view = {
- user: {name: "Jim"},
- names: [
- {name: 'Jim'},
- {name: 'Ray'},
- {name: 'Frank'}
- ],
- tag: "<html>",
- goodness: Math.floor(Math.random() * 10),
- admin: function () { return this.goodness > 5; }
- };
-
-var partials = {
- //'foo.html': 'Hello from foo.html.'
-}
-
-mu.compileText('foo.html', 'Hello from foo');
-mu.compileText('bar.html', template);
-
-// sys.puts(sys.inspect(tokens, false, 10));
-
-//mu.renderText(template, view, partials, function () {});
-
-// mu.render('bar.html', view, function (err, stream) {
-// if (err) {
-// console.log(err)
-// }
-//
-// stream
-// .on('data', function () {})
-// .on('end', function () {})
-// .on('error', function (err) {});
-// });
-
-var numErrors = 0;
-
-var stream = mu.render('bar.html', view)
- .on('data', function (data) {
- util.print(data);
- //stream.pause();
- //setTimeout(function () { stream.resume(); }, 50);
- })
- .on('end', function () { util.print('\nDONE, Errors: ' + numErrors + '\n'); })
- .on('error', function (err) { numErrors++; });
-
-
-
-
-// mu.render(template, partials, view) # => Stream
-// mu.render()
-
-// mu.fs = function (resume) {
-// var file = read file;
-//
-// resume(file);
-// }
-
-
-// mu.render('foo.html', {name: 'Jim'});
Please sign in to comment.
Something went wrong with that request. Please try again.