#!/usr/bin/env ruby #-- # Copyright (c) 2006 Jeff Barczewski # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, # distribute, sublicense, and/or sell copies of the Software, and to # permit persons to whom the Software is furnished to do so, subject to # the following conditions: # # The above copyright notice and this permission notice shall be # included in all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #++ # # = MasterView - Rails-optimized (x)html friendly template engine # # MasterView is a ruby/rails optimized HTML/XHTML friendly template engine. # It is designed to use the full power and productivity of rails including # layouts, partials, and rails html helpers while still being editable/styleable # in a WYSIWYG HTML editor. # # To activate MasterView in your rails application, simply install # the masterview plugin, either as a complete install in your # rails +vendor/plugin+ or by installing the +masterview+ gem and # running the +masterview_plugin+ generator to configure a plugin stub. # # To customize the MasterView configuration, create a +masterview+ directory # in your rails application's +config+ directory. To set MasterView # configuration settings options for your application, provide a # +config/masterview/settings.rb+ file which installs your custom settings # in the +config+. # # # set MasterView configuration options # config.enable_admin_pages = false # config.default_parser_options[:tidy] = true # config.tidy_path = '/usr/lib/libtidy.so' # config.add_directive_path File.join( RAILS_ROOT, 'masterview-ext', 'directives' ) # # To customize the configuration for the current Rails environment, # provide a +config/masterview/environments/#{environment}.rb+ file # which sets config values for that environment using the +config+ variable. # Environment-specific values override general application settings # installed in the main +config/masterview/settings.rb+. # # See MasterView::Configuration for descriptions of the customizable options. # require 'masterview'