Skip to content

Exposing require and item to use in templates#2

Open
gcoda wants to merge 1 commit into
Illyism:masterfrom
gcoda:master
Open

Exposing require and item to use in templates#2
gcoda wants to merge 1 commit into
Illyism:masterfrom
gcoda:master

Conversation

@gcoda

@gcoda gcoda commented May 12, 2017

Copy link
Copy Markdown

Just an idea, it is possible to create special pug template to render list of files, etc

-
  var fs = require('fs')
  var path = require('path')
  var dir = fs.readdirSync(path.dirname(item.dataPath) + '/entries')
ul
  each val, i in dir
    li= i + ': ' + val

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant