copydown

1.0.3 • Public • Published

Copydown

A template engine for dynamically-generated markdown.

For example, if you took this template:

# <project.name> #

<project.description>

## Tags ##

<ForeachList({"list": project.tags, "template": bulletify})>

## Credits ##

<project.credits>

And fed it this data:

{
    "project": {
        "name": "Hero Tactics",
        "description": "An oldschool tactics rpg.",
        "tags": ["Turn-based", "Tile-based", "Undo-able"],
        "credits": "By Andrew Goodenough\nAnd also Andrew Goodenough",
    },
    "bulletify": function(value) {
        return "- " + value
    },
}

You'd generate this markdown:

# Hero Tactics #

An oldschool tactics rpg.

## Tags ##

- Turn-based
- Tile-based
- Undo-able

## Credits ##

By Andrew Goodenough
And also Andrew Goodenough

Readme

Keywords

none

Package Sidebar

Install

npm i copydown

Weekly Downloads

1

Version

1.0.3

License

none

Unpacked Size

3.75 kB

Total Files

7

Last publish

Collaborators

  • ehgoodenough