Created
January 5, 2015 10:54
-
-
Save bastianallgeier/fd735d47b3e212c8a20e to your computer and use it in GitHub Desktop.
You can create a dataURI for all your images and other files in Kirby's templates, snippets or plugins. This is super useful for inline CSS for example.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php echo $page->image('someimage.jpg')->dataURI() ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment