No commit activity in last 3 years
No release in over 3 years
A Middleman fragment caching extension like Rails
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 3.3.0

Runtime

~> 0.7.20
 Project Readme

Middleman Fragment Caching

A Middleman fragment caching extension like Rails.

Purpose

When we need build many pages, fragment caching can decrease the build time.

Installation

Add this line on Gemfile:

gem 'middleman-fragment-caching', '~> 0.0.1'

Run bundler:

$ bundle

Usage

Activate the extension, adding the folling code on config.rb

activate :middleman_fragment_caching

On your app views:

<% fragment_cache('my_key') do %>
  ... some expensive content
<% end %>

<% fragment_cache('my_key', 'some_version', 123) do %>
  ... other expensive content
<% end %>

Clear all cache:

$ rm -r tmp/cache