Git Product home page Git Product logo

metalsmith-json-to-files's People

Contributors

katemihalikova avatar woodyrew avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

metalsmith-json-to-files's Issues

Using with partials

HI @woodyrew, thanks for the awesome plugin. I have integrated in one o my projects. However one major problem I'm facing is rendering custom metadata in Handlebars partials.

Could you please help me out here?

Thanks

Add support for yaml files

Hi @woodyrew, we were chatting in Slack about this, but I think it would be awesome to have support for yaml files built in as well.

As an aside, changing the name to metalsmith-data-files might be more appropriate.

Use metadata for file data

I haven't looked too much into the code, but I think I may have seen that the JSON files are being named-spaced in a certain permalinking naming convention? I don't really think that would be necessary.

For both yaml and json here's an ideal use case that I was considering:

  1. Add a single json, config file to the project
  2. In the file specify each files as a key (index, about, contact-us)
  3. Within each object, specify the data that should be merged onto that file object
  4. Optionally allow for additional metadata to be placed within the object prefixed with a "_" - for example, "_path": "/some/path/:id". This would mimic a directory path to the file for example. Otherwise, it could be simply indexed by key.
  5. Use the plugin above other plugins to take advantage of uses of metalsmith-permalinks, etc.

Thoughts?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.