Sha256: fc411c3de0d7cfb0ab450d82b51eb1f445bc05fe8cee0ea69493a0cdb8b72d7e

Contents?: true

Size: 641 Bytes

Versions: 4

Compression:

Stored size: 641 Bytes

Contents

# coding: utf-8

require 'mustache'

require_relative 'fig/module_fig_base'
require_relative 'fig/module_fig_plus'

class Fig_H < Mustache

  include Fig_00, Fig_01

  # <<Fig_H>>
  # src: 画像ファイル名
  # href: 画像クリックで遷移するURL
  # width: 画像幅
  # height: 画像高さ
  # cap: キャプション

  @template = <<EOT
<figure>
  {{#imgs_list}}
  {{#href}}<a href="{{href}}" target="_blank">{{/href}}<img src="{{fig_src}}" alt="{{alt}}" {{& img_style}}/>{{#href}}</a>{{/href}}
  {{/imgs_list}}
  {{#figcaption_sw}}<figcaption markdown="span">{{& caption}}</figcaption>{{/figcaption_sw}}
</figure>
EOT

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
zine_brewer-1.6.1 lib/zine_brewer/templates/fig_h.rb
zine_brewer-1.6.0 lib/zine_brewer/templates/fig_h.rb
zine_brewer-1.5.0 lib/zine_brewer/templates/fig_h.rb
zine_brewer-1.3.2 lib/zine_brewer/templates/fig_h.rb