Module: Hightouch

Defined in:
lib/hightouch.rb,
lib/hightouch/cli.rb,
lib/hightouch/tag.rb,
lib/hightouch/blog.rb,
lib/hightouch/archive.rb,
lib/hightouch/version.rb,
lib/hightouch/category.rb,
lib/hightouch/blog_posting.rb,
lib/hightouch/app_generator.rb,
lib/hightouch/archive_page_generator.rb

Defined Under Namespace

Modules: ArchivePageGenerator, HelperMethods Classes: AppGenerator, Archive, Blog, BlogPosting, CLI, Category, Tag

Constant Summary collapse

VERSION =
'0.1.2'

Class Method Summary collapse

Class Method Details

.registered(app) ⇒ Object Also known as: included



19
20
21
22
23
24
25
26
27
28
# File 'lib/hightouch.rb', line 19

def registered(app)
  app.helpers HelperMethods
  app.helpers ActiveSupport::Inflector

  app.after_configuration do
    frontmatter_changed /blog\/(\d{4})\/(\d{2})\/(\d{2})\/(.*)\.html/ do |file|
      blog.touch_blog_posting(self.sitemap.page(self.sitemap.file_to_path(file)))
    end
  end
end