Commit 521fb5d 1 parent 52e1d0b commit 521fb5d Copy full SHA for 521fb5d
File tree 3 files changed +8
-8
lines changed
3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
- # Raw Asset Tag ![ Statamic 2.0] ( https://img.shields.io/badge/statamic-2.0-blue.svg?style=flat-square )
1
+ # SVG Output Tag ![ Statamic 2.0] ( https://img.shields.io/badge/statamic-2.0-blue.svg?style=flat-square )
2
2
3
- Render the output of any file in your asset folder using the ID.
3
+ Render the output of any SVG file in your asset folder using the ID.
4
4
5
5
## Installation
6
6
1 . Copy over the files into the ` site ` folder.
7
- 2 . Output the raw asset using the new ` raw_asset ` tag!
7
+ 2 . Output the raw SVG asset using the new ` svg_output ` tag!
8
8
9
9
## Parameters
10
10
@@ -14,7 +14,7 @@ Class - Allows you to add a class to the tag
14
14
## Example
15
15
16
16
```
17
- {{ raw_asset id="{id}" class="class-name" }}
17
+ {{ svg_output id="{id}" class="class-name" }}
18
18
```
19
19
20
20
```
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- namespace Statamic \Addons \RawAsset ;
3
+ namespace Statamic \Addons \SvgOutput ;
4
4
5
5
use Statamic \API \Asset ;
6
6
use Statamic \Extend \Tags ;
7
7
8
- class RawAssetTags extends Tags
8
+ class SvgOutputTags extends Tags
9
9
{
10
10
public function index ()
11
11
{
Original file line number Diff line number Diff line change 1
- name : Raw Assets
1
+ name : SVG Output
2
2
version : 1.0.0
3
- description : Render the raw output of an asset by ID.
3
+ description : Render the raw output of an SVG asset by ID.
4
4
url : mike-martin.ca
5
5
developer : Mike Martin
6
6
developer_url : mike-martin.ca
You can’t perform that action at this time.
0 commit comments