Skip to content

autogram-is/eleventy-plugin-csvdata

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eleventy-plugin-yamldata

A plugin that allows yaml file as a local data file for template.

Installation

From github,

yarn add https://github.com/gwangyi/eleventy-plugin-yamldata

Open up your Eleventy config file (probably eleventy.js) and use addPlugin:

const pluginYamldata = require("eleventy-plugin-yamldata");
module.exports = function(eleventyConfig) {
    eleventyConfig.addPlugin(pluginYamldata);
};

Usage

Make a yaml file like filename.11tydata.yaml same as json/js data file.

Note

This plugin implemented by monkeypatching an internal class of eleventy. If internal classes of eleventy is changed so far, this plugin may not works.

About

Use YAML file as a data file in eleventy(https://11ty.io)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%