From 724264af0848f8b1ea1856b50371d742cf207523 Mon Sep 17 00:00:00 2001 From: Nick Urban Date: Tue, 21 May 2013 16:58:14 -0400 Subject: [PATCH 1/2] Mention HAML support in README --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index f3c7999..effd3e6 100644 --- a/README.md +++ b/README.md @@ -141,3 +141,19 @@ You'll need to use a special comment format to call those out: ``` The pattern used to match these is `/# Template Dependency: ([^ ]+)/`, so it's important that you type it out just so. You can only declare one template dependency per line. + + +Supported Templating Languages +------------------------------ + +Only ERB is officially supported by the dependency tracker, but the ERB Tracker may work with other formats. + +Add this initializer to enable HAML support and check the results with `rake cache_digests:dependencies` + +```ruby +# config/initializers/cache_digests.rb + +# Enable experimental HAML support with the ERB Dependency Tracker +CacheDigests::DependencyTracker.register_tracker :haml, CacheDigests::DependencyTracker::ERBTracker +``` + From ddf08696d5ce930b282f6aa088f19be5abeb40eb Mon Sep 17 00:00:00 2001 From: Nick Urban Date: Wed, 22 May 2013 15:38:52 -0400 Subject: [PATCH 2/2] Add comment about Slim support to README --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index effd3e6..adffcfa 100644 --- a/README.md +++ b/README.md @@ -148,12 +148,15 @@ Supported Templating Languages Only ERB is officially supported by the dependency tracker, but the ERB Tracker may work with other formats. -Add this initializer to enable HAML support and check the results with `rake cache_digests:dependencies` +Add this initializer to enable HAML or Slim support and check the results with `rake cache_digests:dependencies` ```ruby # config/initializers/cache_digests.rb # Enable experimental HAML support with the ERB Dependency Tracker CacheDigests::DependencyTracker.register_tracker :haml, CacheDigests::DependencyTracker::ERBTracker + +# Enable experimental Slim support with the ERB Dependency Tracker + CacheDigests::DependencyTracker.register_tracker :slim, CacheDigests::DependencyTracker::ERBTracker ```