2012-11-19 13:39:43 +00:00
|
|
|
require "semantic_rails_view_helpers/version"
|
|
|
|
require 'semantic_rails_view_helpers/engine' if defined?(Rails::Engine)
|
|
|
|
|
2012-12-08 14:55:53 +00:00
|
|
|
module SemanticRailsViewHelpers
|
|
|
|
def self.semantic_data?
|
|
|
|
Rails.configuration.add_semantic_data
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.with_semantic_data
|
|
|
|
return {} if !semantic_data?
|
|
|
|
|
|
|
|
yield
|
|
|
|
end
|
|
|
|
end
|