Skip to content

DiversityTemplating/diversity-ruby

Repository files navigation

Diversity engine in Ruby

[Build Status] (https://travis-ci.org/DiversityTemplating/diversity-ruby) [Code Climate] (https://codeclimate.com/github/DiversityTemplating/diversity-ruby) [Coverage Status] (https://coveralls.io/r/DiversityTemplating/diversity-ruby)

A Ruby engine for Diversity components, by Textalk.

Diversity components are reusable search engine optimized (SEO) web components, specified by mustache templates, supporting dependencies, backend fetching of data over JSON-RPC, supporting AngularJS templating on the frontend (by doing collected manual bootstrapping).

This component system is constructed for use with Textalk Webshop, but is in no way limited to that use.

Options

Engine

The Engine takes the following options:

minification

cache

The engine keeps two things in cache: Instantiated components, and rendered HTML. This is a memory-only cache inside current worker.

Options:

  • ttl - Time to live, in seconds. Default: 60.