class Temple::Engines::ERB
def detect_magic_comment(s)
def detect_magic_comment(s) if /\A<%#(.*)%>/ =~ s or (percent? and /\A%#(.*)/ =~ s) comment = $1 comment = $1 if comment[/-\*-\s*(.*?)\s*-*-$/] if %r"coding\s*[=:]\s*([[:alnum:]\-_]+)" =~ comment enc = $1.sub(/-(?:mac|dos|unix)/i, '') enc = Encoding.find(enc) end end end