Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/artcom/gitbook-plugin-ls

Plugin for gitbook that lists files in a directory
https://github.com/artcom/gitbook-plugin-ls

Last synced: about 1 month ago
JSON representation

Plugin for gitbook that lists files in a directory

Awesome Lists containing this project

README

        

# gitbook-plugin-ls

List files in a directory

## Installation:

`$ npm install artcom/gitbook-plugin-ls --save`

Add this to `book.json`:
```
{
"plugins": ["ls"]
}
```

## Usage:

```
{% for file in "some/path" | ls %}
{% if topic.isFile %}
Path: {{ topic.path }}
Basename: {{ topic.basename }}
{% endif %}
{% endfor %}
```