Sha256: e5f3da2fd036fed0873ce9803ee0517e412acc27a41f1c8c72b59d688cfd135c

Contents?: true

Size: 1.05 KB

Versions: 3

Compression:

Stored size: 1.05 KB

Contents

---
svgname: square
foo-bar: "hyphens-var-test"
svgclass: hello
---
Hello world
<div id="base">
{% svg files/square.svg %}
</div>

<div id="height">
{% svg files/square.svg  width=24 %}
{% svg files/square.svg  width=24 height=48 %}
{% svg files/square.svg  width=24 height="" %}
</div>
<div id="attributes">
  {% svg files/square.svg  role="navigation" data-foo="bar" fill="#ffffff" stroke=#000000 %}
</div>
<div id="path">
  <label>Resolve relative and absolute paths to site's source</label>
  {% svg files/square.svg %}
  {% svg /files/square.svg %}
</div>

<div id="jail">
  <label>Resolve relative and absolute paths to site's source</label>
  {% svg /../files/square.svg %}
  {% svg ../files/square.svg %}
</div>

<div id="interpret">
  <label>Interpret embedded variables</label>
  {% svg /files/{{page.svgname}}.svg %}
  {% svg /files/square.svg id="name-{{page.svgname}}" class="class-{{page.svgclass}}" %}
  {% svg /files/square.svg id="test-hyphens" class="{{page.foo-bar}}" %}

</div>

<div id="optimize">
  {% svg /files/{{page.svgname}}.svg data-foo="" %}
</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jekyll-inline-svg-1.1.5 spec/fixtures/index.html
jekyll-inline-svg-1.1.4 spec/fixtures/index.html
jekyll-inline-svg-1.1.3 spec/fixtures/index.html