Method: Juli::Macro::Tag#after_root

Defined in:
lib/juli/macro/tag.rb

#after_root(file, root) ⇒ Object

follow-up process to register ‘no-tag’ if there is no tag in the file.



58
59
60
61
62
63
64
65
# File 'lib/juli/macro/tag.rb', line 58

def after_root(file, root)
  key = sprintf("%s%s%s", @wikiname, SEPARATOR, NO_TAG)
  if @tag_exists
    @tag_page_db.delete(key)
  else
    @tag_page_db[key] = '1'
  end
end