edde

edde is a template language based on ed

Usage no npm install needed!

<script type="module">
  import edde from 'https://cdn.skypack.dev/edde';
</script>

README

:?

status

beta

works with ed and ex

edde

“Ed is for those who can remember what they are working on.”

edde is a template language based on ed.

It will replace ed commands in a text file with its output.

Install

npm install -g eddy

API

var edde = require("./index.js");

var options = {
    start: /^(>>)(ed|ex)/,
    end: /__END__/,
    DEBUG: true,
    dir: "."
}

edde.compile("*edde.md", options);

Limitations

  • Don't use eds !cat "foo" commands along with range commands. You will get the wrong output.

  • use q

Use cases

  • Literate programming
  • Readme generation (this)
  • Blog + Code

See

man ed