Class: Deplate::Command::Matter

Inherits:
Deplate::Command show all
Defined in:
lib/deplate/template.rb

Direct Known Subclasses

BODY, POSTMATTER, PREMATTER

Instance Method Summary collapse

Methods inherited from Deplate::Command

commands, #finish, #format_special, register_as, #setup, #setup_command, update_variables

Methods included from Names

name_match_c, name_match_fs, name_match_sf

Methods inherited from Element

#join_lines, #join_lines_re_zh_cn

Instance Method Details

#processObject



30
31
32
33
34
35
36
37
38
39
# File 'lib/deplate/template.rb', line 30

def process
    id = @args["id"] || @accum[0]
    @elt = template_get_content(id)
    if @elt
        return self
    else
        log(["PREMATTER: No content found", id], :error)
        return nil
    end
end