Skip to content
This repository was archived by the owner on Jun 5, 2020. It is now read-only.

Commit 3c37c72

Browse files
committed
README
1 parent b86b807 commit 3c37c72

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

MetaScript.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@
370370
if (start < 0) start = 0;
371371
if (end > lines.length) end = lines.length;
372372
var code = [];
373-
// start = 0; end = lines.length;
373+
start = 0; end = lines.length;
374374
while (start < end) {
375375
code.push(start === line ? "--> "+lines[start] : " "+lines[start]);
376376
start++;

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ data, or that do part of the work at compile time that would otherwise be done a
66

77
**MetaScript** is a tool for build time meta programming using JavaScript as the meta language.
88

9+
<p align="center">
10+
<img src="https://raw.github.com/dcodeIO/MetaScript/master/example.png" />
11+
</p>
12+
913
How does it work?
1014
-----------------
1115
If you already know JavaScript, adding some meta is as simple as remembering that ...

example.jpg

39.9 KB
Loading

tests/someinclude.js

+4
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@ console.log(/*?== "included" */);
33

44
// This will be indented once more:
55
//? if (YEP) include("sub/someotherinclude.js");
6+
7+
// This should say 'undefined' as it's not visible in __eval:
8+
// //?= typeof filename
9+

0 commit comments

Comments
 (0)