Class: AlRtl::IfRtlBlock

Inherits:
Liquid::Block
  • Object
show all
Defined in:
lib/al_rtl.rb

Overview

if_rtl %…endif_rtl % for layouts that need to branch.

Instance Method Summary collapse

Instance Method Details

#render(context) ⇒ Object



144
145
146
147
148
# File 'lib/al_rtl.rb', line 144

def render(context)
  return "" unless AlRtl.rtl?(context.registers[:site], context.registers[:page])

  super
end