Skip to content

netliferesearch/craft-fetch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Craft Fetch

Twig Extension that relays PHP's file_get_contents() and return the contents in raw format to template. Use with care. Useful if you want to embed external svg code inline in templates.

Example

<figure class="c-icon">
  {{ fetch(svg.url) }}
</figure>
<figure class="c-icon">
  {{ fetch('http://foo.bar/illustration.svg') }}
</figure>

About

Craft CMS Twig Extension for file_get_contents()

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages