/usr/lib/ruby/vendor_ruby/haml/filters/php.rb is in ruby-haml-contrib 1.0.0.1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | # A PHP Filter for Haml. This simply wraps code inside <?php ?> tags. While this
# may seem like a strange idea, some people use Haml to generate mostly static
# HTML documents that then include small amounts of PHP.
#
# This code also serves as an example of how to implement a simple filter for
# Haml.
module Haml
module Filters
module PHP
include Base
def render(text)
"<?php\n %s\n?>" % text.rstrip.gsub("\n", "\n ")
end
end
end
end
|