Skip to content

Support for load SVG files directly as files. #10

@mitogh

Description

@mitogh

For example instead of loading a partial it should be something like:

<?php Load::icons( 'email' ); ?>

// points to icons/email.php or icons/email.svg

Where email is something like:

<svg width="51px" height="38px" viewBox="0 0 51 38" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
	<title>Group 14</title>
	<desc>Created with Sketch.</desc>
	<defs>
		<path d="M42.99,0.125 L6.99,0.125 C3.69,0.125 0.99,2.825 0.99,6.125 L0.99,30.125 C0.99,33.425 3.69,36.125 6.99,36.125 L42.99,36.125 C46.289,36.125 48.99,33.425 48.99,30.125 L48.99,6.125 C48.99,2.825 46.289,0.125 42.99,0.125 Z" id="path-1"></path>
	</defs>
	<g id="UI-Kit" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
		<g id="Desktop-HD" transform="translate(-195.000000, -3043.000000)">
			<g id="Group-14" transform="translate(196.000000, 3044.000000)">
				<path d="M44.0202026,-0.5 C47.5987634,-0.5 49.5,1.39283243 49.5,4.96557617 L49.5,30.9853516 C49.5,34.568609 47.5883273,36.5 44.0202026,36.5 L6,36.5 C2.42484255,36.5 0.49,34.5624807 0.49,30.9853516 L0.49,4.96557617 C0.49,1.39884084 2.41428251,-0.5 6,-0.5 L44.0202026,-0.5 Z" id="Fill-21" stroke="#B1B1BB"></path>
				<g id="Stroke-22">
					<mask id="mask-2" fill="white">
						<use xlink:href="#path-1"></use>
					</mask>
					<use id="Mask" fill="#FFFFFF" xlink:href="#path-1"></use>
					<polyline stroke="#FFD713" stroke-width="2" stroke-linecap="square" stroke-linejoin="round" mask="url(#mask-2)" points="0 6.5 24.7263158 18.125 50 6.5"></polyline>
				</g>
			</g>
		</g>
	</g>
</svg>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions