Sha256: 052b6699fa88e8a14b2ccea9069b003975c2d419ca27c0aff64c18ecb933799e

Contents?: true

Size: 703 Bytes

Versions: 3

Compression:

Stored size: 703 Bytes

Contents

# coding: utf-8

require 'mustache'

require_relative 'fig/module_fig_base'

class Fig_P < Mustache

  include Fig_00

  # <<Fig_P>>
  # src: 画像ファイル名
  # name: 姓 名
  # huri: ふり・がな
  # width: 画像幅
  # height: 画像高さ
  # cap: |
  #  キャプション

  @template = <<EOT
<figure>
  {{#imgs_list}}
  <img src="{{fig_src}}" loading="lazy" alt="{{name}}氏"{{#width}} width="{{width}}"{{/width}}{{#height}} height="{{height}}"{{/height}} />
  {{/imgs_list}}
  <div style="text-align:left; padding:0px 35px;">
    <figcaption><strong>{{name}}({{huri}})氏</strong></figcaption>
    <figcaption markdown="span">{{caption}}</figcaption>
  </div>
</figure>
EOT

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
zine_brewer-1.9.0 lib/zine_brewer/templates/fig_p.rb
zine_brewer-1.8.0 lib/zine_brewer/templates/fig_p.rb
zine_brewer-1.7.0 lib/zine_brewer/templates/fig_p.rb