Giter Club home page Giter Club logo

babe's Introduction

Hi there ๐Ÿ‘‹

I'm a polyglot software engineer with a decade of experience in variety of industries, programming languages and tech stacks. Feel free to get in touch if you want to collaborate via [email protected].

babe's People

Contributors

askonomm avatar

Stargazers

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

Watchers

 avatar  avatar

babe's Issues

Better data mapping

Current data mapping isn't very flexible, cannot map a single item or combine multiple. Therefore I think it should be changed to something like this:

{
  "data": {
    "posts": {
      "content": "blog",
      "sortBy": "date",
      "order": "desc"
    }
  }
}

Now the key of an item inside "data" is the variable name, the content in it would determine what to map to that variable. For example if the content is just a string like blog it will attempt to look for everything inside of a blog directory. However if you changed it to something like blog/hello-world.md, then the only thing that would be mapped to that variable is that singular content item. Similarly, you could pass an array instead, like this:

{
  "data": {
    "posts": {
      "content": ["thoughts", "ideas"],
      "sortBy": "date",
      "order": "desc"
    }
  }
}

And this would combine data from two different directories. You can also pass an array of actual content items for more fine control.

And we'd also want to group stuff, so we could pass an additional groupBy to each data item which could take a meta key (easy to implement) and additionally what I would also like to have is to have some special grouping abilities for built-in special meta fields like date. Say you wanted to group your blog posts by year, perhaps could pass it as groupBy: "date|year", or something of that nature. I think this would open up a lot of possibilities.

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.