1.0.3 • Published 2 years ago

copydown v1.0.3

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

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
1.0.3

2 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago