Coder Social home page Coder Social logo

metalsmith-metafiles's People

Contributors

ajedi32 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

metalsmith-metafiles's Issues

Refactor tests

There's currently a lot of code duplication in the tests for this project. That's not necessarily a bad thing if it helps keep the tests readable, but I'd like to try refactoring to see if I can reduce code duplication somewhat.

Epic: Add full suite of config options / support for multiple data formats

Make this work:

metafile({
  prefix: "",
  postfix: ".meta",
  deleteMetaFiles: true,
  parsers: {
    ".cson": false, // Disable
    ".json": true, // Enable
    ".yaml": "js-yaml", // Specify parser
    ".toml": {
      "parser": "toml-node",
      // Override global attributes
      "postfix": "",
      "prefix": "meta-",
      "deleteMetaFiles": false
    },
    ".js": function(content) { return eval(content); } // Custom parser
  }
});

Update README opening section to explain why you might choose this plugin over frontmatter

Why choose this method over frontmatter? While frontmatter is a convenient way to set metadata in your files, it can cause problems with syntax hilighters, linters, and other tools which expect your source files to contain only valid syntax from the language they are written in. (Frontmatter isn't valid CSS, HTML, JavaScript, etc.) Putting your metadata in separate files eliminates these problems.

Ability to name-space from multiple files?

Hi there!
Is it possible to have multiple metafiles pointing to a single file? For example:
index.html is the "host file". index.html.meta.json is generic metadata. index.html.books.meta.jsonwould be found under the books key for the index.html file. Does that make sense?

Checkout GRAV

Heya, not sure how to message you using github... I saw this metalsmith issue from your mention on this Jekyll Issue (with linting)

Thought I'd suggest you look at: GRAV

It's not (currently) a static site generator -- but its database-less, meaning some yaml files. Only requirement is PHP5.4. Its also very plugablle like metalsmith. In fact, no editing on the server by default, without a plugin. That said, its likely very easy to turn it into a static-site-generator with a plugin. Just thought I'd share. FWIW, they're using gitter for communication.

Decide on default parser for .js

I'm actually not sure if exec is the best parser for JS. Before the next major release, I need to examine if it's better to use exec by default vs something like require.

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.