jdrich / wingnut

A PHP static site generation tool.
MIT License
1 stars 0 forks source link

Create the ability to filter based on multiple maps #4

Open jdrich opened 9 years ago

jdrich commented 9 years ago

Consider the following:

Tag associations Search terms Categories Archives

Need to be able to say "This page is rendering with a post in this category," etc.

jdrich commented 9 years ago

The idea here was to have a Filter that can combine the output of two maps. That filter would do some sort of intersect on the maps to create the page object.

For example, to associate a post with its tag cloud and category, you might feed those three maps into a filter and then associate them all based on the category name. The output would be another map which would contain the post with its associated category and tag data.