Sha256: 1572e2429401e1d76de216417f05e9c6ba27e243f8d6f63943e6bdfc6fd55c34

Contents?: true

Size: 562 Bytes

Versions: 10

Compression:

Stored size: 562 Bytes

Contents

# coding: utf-8

require 'mustache'

require_relative 'fig/module_fig_base'

class Fig_H < Mustache

  include Fig_00

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

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

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
zine_brewer-1.13.1 lib/zine_brewer/templates/fig_h.rb
zine_brewer-1.13.0 lib/zine_brewer/templates/fig_h.rb
zine_brewer-1.12.2 lib/zine_brewer/templates/fig_h.rb
zine_brewer-1.12.1 lib/zine_brewer/templates/fig_h.rb
zine_brewer-1.12.0 lib/zine_brewer/templates/fig_h.rb
zine_brewer-1.11.3 lib/zine_brewer/templates/fig_h.rb
zine_brewer-1.11.2 lib/zine_brewer/templates/fig_h.rb
zine_brewer-1.11.1 lib/zine_brewer/templates/fig_h.rb
zine_brewer-1.11.0 lib/zine_brewer/templates/fig_h.rb
zine_brewer-1.10.0 lib/zine_brewer/templates/fig_h.rb