Module: PlatformosCheck::Tags

Defined in:
lib/platformos_check/tags.rb,
lib/platformos_check/tags/log.rb,
lib/platformos_check/tags/try.rb,
lib/platformos_check/tags/base.rb,
lib/platformos_check/tags/form.rb,
lib/platformos_check/tags/cache.rb,
lib/platformos_check/tags/print.rb,
lib/platformos_check/tags/export.rb,
lib/platformos_check/tags/render.rb,
lib/platformos_check/tags/return.rb,
lib/platformos_check/tags/context.rb,
lib/platformos_check/tags/graphql.rb,
lib/platformos_check/tags/session.rb,
lib/platformos_check/tags/sign_in.rb,
lib/platformos_check/tags/function.rb,
lib/platformos_check/tags/rollback.rb,
lib/platformos_check/tags/background.rb,
lib/platformos_check/tags/base_block.rb,
lib/platformos_check/tags/parse_json.rb,
lib/platformos_check/tags/hash_assign.rb,
lib/platformos_check/tags/redirect_to.rb,
lib/platformos_check/tags/transaction.rb,
lib/platformos_check/tags/theme_render.rb,
lib/platformos_check/tags/response_status.rb,
lib/platformos_check/tags/spam_protection.rb,
lib/platformos_check/tags/base_tag_methods.rb,
lib/platformos_check/tags/response_headers.rb

Defined Under Namespace

Modules: BaseTagMethods Classes: Background, Base, BaseBlock, Cache, ContentFor, Context, Export, Form, Function, Graphql, HashAssign, IncludeForm, Log, ParseJson, Print, RedirectTo, Render, ResponseHeaders, ResponseStatus, Return, Rollback, Session, SignIn, SpamProtection, ThemeRender, Transaction, Try, Yield

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.register_tags=(value) ⇒ Object (writeonly)

Sets the attribute register_tags

Parameters:

  • value

    the value to set the attribute register_tags to.



20
21
22
# File 'lib/platformos_check/tags.rb', line 20

def register_tags=(value)
  @register_tags = value
end

Class Method Details

.register_tag(name, klass) ⇒ Object



26
27
28
# File 'lib/platformos_check/tags.rb', line 26

def register_tag(name, klass)
  Liquid::Environment.default.register_tag(name, klass)
end

.register_tags!Object



30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# File 'lib/platformos_check/tags.rb', line 30

def register_tags!
  return if !register_tags? || (defined?(@registered_tags) && @registered_tags)

  @registered_tags = true
  register_tag('background', Background)
  register_tag('cache', Cache)
  register_tag('content_for', ContentFor)
  register_tag('context', Context)
  register_tag('context_rc', Context)
  register_tag('export', Export)
  register_tag('form', Form)
  register_tag('function', Function)
  register_tag('graphql', Graphql)
  register_tag('hash_assign', HashAssign)
  register_tag('include_form', IncludeForm)
  register_tag('log', Log)
  register_tag('parse_json', ParseJson)
  register_tag('print', Print)
  register_tag('redirect_to', RedirectTo)
  register_tag('render', Render)
  register_tag('response_headers', ResponseHeaders)
  register_tag('response_status', ResponseStatus)
  register_tag('return', Return)
  register_tag('rollback', Rollback)
  register_tag('session', Session)
  register_tag('sign_in', SignIn)
  register_tag('spam_protection', SpamProtection)
  register_tag('theme_render', ThemeRender)
  register_tag('theme_render_rc', ThemeRender)
  register_tag('transaction', Transaction)
  register_tag('try', Try)
  register_tag('try_rc', Try)
  register_tag('yield', Yield)
end

.register_tags?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/platformos_check/tags.rb', line 22

def register_tags?
  @register_tags
end