Open jondashkyle opened 6 years ago
Can now start messing with this by using the next
tag on npm.
npm i nanopage@next --save
A fun new one. Both the page()
and file()
methods accept a glob in addition to a path (string) and state (obj).
var images = page('../*.jpg').toArray()
Relative urls have also been introduced.
var parentTitle = page('../').value('title')
This has been published as next2
to npm under the @next
tag.
Added all sorts of fun stuff here.
files
key in pages, but uses regex in the same way asfind
.require('nanopage/file')
.Still need some work, but though to create a pull request to begin tracking progress for what’s being discussed for
content state
. For example, we should determine what utilities we’d likefile
to expose. Perhaps something related tosizes
anddimensions
?