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