Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/artcom/gitbook-plugin-ls
- Owner: artcom
- Created: 2016-01-15T14:30:12.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-20T09:43:00.000Z (about 9 years ago)
- Last Synced: 2024-11-07T06:36:35.975Z (3 months ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 11
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 %}
```