Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
new SpikeDatoCMS({
addDataTo: locals,
token: 'xxx',
templates: [
collection: (dato) => dato.blogPosts,
path: 'templates/post.html',
output: (post) => { return `posts/${post.slug}.html` }
// this would expose "loader.itemsRepo" as "dato" to every template
// and generate N detail pages, one for each blog post
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment