luwes/craft3-inline

在twig模板中内联文件内容。

安装数: 5,561

依赖者: 0

建议者: 0

安全: 0

星标: 0

关注者: 2

分叉: 0

开放问题: 0

类型:craft插件

dev-master 2018-08-21 00:42 UTC

This package is auto-updated.

Last update: 2024-09-24 06:59:06 UTC


README

在twig模板中内联文件内容。

安装

要安装Inline,请按照以下步骤操作

  1. 使用Composer通过composer require luwes/craft3-inline进行安装
  2. 在Craft控制面板的设置 > 插件下安装插件

Inline适用于Craft 3.x。

Inline概述

内部使用PHP函数file_get_contents

使用Inline

{{ inline(assetsUrl ~ '/images/logo.svg') | raw }}

Inline路线图

一些待办事项和潜在功能的想法

  • 发布它

Wesley Luyten提供