class Jekyll::Strapi::StrapiCollectionsDrop

Handles Strapi collections in Liquid, and creates the collection on demand

Public Class Methods

new(collections) click to toggle source
# File lib/jekyll/strapi/drops.rb, line 42
def initialize(collections)
  @collections = collections
end

Public Instance Methods

[](collection_name) click to toggle source
# File lib/jekyll/strapi/drops.rb, line 46
def [](collection_name)
  StrapiCollectionDrop.new(@collections[collection_name])
end