atk14 / vlnka
在按照捷克语言规范不应发生换行的地方,用非断开空格替换普通空格
v1.1.1
2023-02-09 16:24 UTC
Requires
- php: >=5.3.0
- atk14/functions: ^1.0, >=1.0.2
- mikulas/vlna: >=1.0.1
Requires (Dev)
- atk14/tester: *
This package is auto-updated.
Last update: 2024-09-24 22:31:37 UTC
README
在按照捷克语言规范不应发生换行的地方,用非断开空格替换普通空格。
实际上,Vlnka 为使用 Smarty 作为模板引擎的应用程序提供 Smarty 块助手和修饰符。
在 ATK14 应用中,只有当使用捷克语或斯洛伐克语时,Vlnka 才会生效。
基本用法
在模板中
{* block helper usage *}
{vlnka}
<p>
Here is the text in which all the regular spaces will be replaced with non-breaking spaces.
</p>
<p>
Zde je text, ve kterém budou na všech potřebných místech nahrazeny normální mezery mezerami nedělitelnými.
</p>
<p title="titulek v HTML tagu zůstane zachován beze změny">
Vlnka doesn't change content of HTML tags.
</p>
{/vlnka}
{* modifier usage *}
{$text|vlnka}
安装
只需使用 Composer 即可
cd path/to/your/atk14/project/
composer require atk14/vlnka
许可证
Vlnka 是免费软件,根据 MIT 许可证 进行分发。