Sha256: f63f03b71af0841e21573b6074308d25534d4fc9304a3e91a543ae61429b1fce

Contents?: true

Size: 338 Bytes

Versions: 16

Compression:

Stored size: 338 Bytes

Contents

description 'Wraps fragment into html block to make it valid'

Filter.create :html_wrapper do |context, content|
  %{<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>#{escape_html context.page.title}</title>
  </head>
  <body><div>#{content}</div></body>
</html>}
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
olelo-0.9.15 plugins/filters/html_wrapper.rb
olelo-0.9.14 plugins/filters/html_wrapper.rb
olelo-0.9.13 plugins/filters/html_wrapper.rb
olelo-0.9.12 plugins/filters/html_wrapper.rb
olelo-0.9.11 plugins/filters/html_wrapper.rb
olelo-0.9.10 plugins/filters/html_wrapper.rb
olelo-0.9.9 plugins/filters/html_wrapper.rb
olelo-0.9.8 plugins/filters/html_wrapper.rb
olelo-0.9.7 plugins/filters/html_wrapper.rb
olelo-0.9.6 plugins/filters/html_wrapper.rb
olelo-0.9.5 plugins/filters/html_wrapper.rb
olelo-0.9.4 plugins/filters/html_wrapper.rb
olelo-0.9.3 plugins/filters/html_wrapper.rb
olelo-0.9.2 plugins/filters/html_wrapper.rb
olelo-0.9.1 plugins/filters/html_wrapper.rb
olelo-0.9.0 plugins/filters/html_wrapper.rb