GitXplorerGitXplorer
d

TagScript

public
9 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
20e648cafa0a7d5aa8fea24a9803b799e989677e

Update builtin.js

ddevsnek committed 8 years ago
Unverified
6b9fa0312ca16849785666ad059a4fac8454f7c5

Merge pull request #3 from GusCaplan/greenkeeper/chevrotain-0.22.0

ddevsnek committed 8 years ago
Unverified
7fc471b534c6624acdd6025304aad6469e959ffc

fix(package): update chevrotain to version 0.22.0

ggreenkeeper[bot] committed 8 years ago
Unverified
c8f34f16926f2d62cec37043467d8a08720fb8f0

Merge pull request #2 from GusCaplan/greenkeeper/update-all

ddevsnek committed 8 years ago
Unverified
f12acd198cc351fe2d5247b9c718fb37c8b9c9f3

chore(package): update dependencies

ggreenkeeper[bot] committed 8 years ago
Unverified
9ad18bf490894c5e090c9c5773ab5c5a4f17cf6c

fuck you dougley

ddevsnek committed 8 years ago

README

The README file for this repository.

TagScript

A better way to deal with the modern issues of tag parsing.

It's a pretty simple system, you just put text in, maybe define some functions, and out comes parsed tags and such.

There are three basic things you can pass as functions to the compiler.

  1. Basic replacements. these are simple key/value strings.
  2. Basic functions. These are simple syncronous functions that take arguments and return a string,
  3. Promise functions. These are asyncronous functions that take arguments and resolve a string. Note: any promise that rejects will be replaced with an empty string.

You can see all of these as examples in example.js

There are a number of builtin replacements and functions. They can be viewed in builtin.js

Please note that two functions (get and set) are kept in the actual compiler due to internal variables they rely on.