diff --git a/README.md b/README.md index f3c7999..adffcfa 100644 --- a/README.md +++ b/README.md @@ -141,3 +141,22 @@ 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 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 +``` +