Sha256: 3682245a3d35f037f1981120ddd7e3d6f17d14aa3b56836f1000a33274b72d1a

Contents?: true

Size: 766 Bytes

Versions: 1

Compression:

Stored size: 766 Bytes

Contents

=begin rdoc
The rdfa library for Ruby On Rails adds a set of helper methods 
to the ApplicationHelper of your rails application providing 
developers with abstractions for the publishing of rdfa data.

Here is a simple example of how to use rdfa in your application:
* require 'rdfa' in config/environment.rb
* in your layout replace <html> by <%= rdfa_html %>

=end

require 'rdfa/base'
require 'rdfa/supported_vocabularies'
require 'rdfa/shortcuts'

Rdfa.register_vocabularies
Rdfa.register_shortcuts

# add the methods to action view if available
if defined? ActionView
  ActionView::Base.send :include, Rdfa
  #ActionView::Base.send :include, Rdfa::Classes
  #ActionView::Base.send :include, Rdfa::Properties
  #ActionView::Base.send :include, Rdfa::Partials
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rdfa-0.0.8 lib/rdfa.rb