com.roncoo:shiro-freemarker-tags

roncoo open source

License

License

GroupId

GroupId

com.roncoo
ArtifactId

ArtifactId

shiro-freemarker-tags
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

com.roncoo:shiro-freemarker-tags
roncoo open source
Project URL

Project URL

https://github.com/roncoo/shiro-freemarker-tags
Project Organization

Project Organization

LingKe, Co., Ltd.
Source Code Management

Source Code Management

https://github.com/roncoo/shiro-freemarker-tags

Download shiro-freemarker-tags

How to add to project

<!-- https://jarcasting.com/artifacts/com.roncoo/shiro-freemarker-tags/ -->
<dependency>
    <groupId>com.roncoo</groupId>
    <artifactId>shiro-freemarker-tags</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.roncoo/shiro-freemarker-tags/
implementation 'com.roncoo:shiro-freemarker-tags:1.0.0'
// https://jarcasting.com/artifacts/com.roncoo/shiro-freemarker-tags/
implementation ("com.roncoo:shiro-freemarker-tags:1.0.0")
'com.roncoo:shiro-freemarker-tags:jar:1.0.0'
<dependency org="com.roncoo" name="shiro-freemarker-tags" rev="1.0.0">
  <artifact name="shiro-freemarker-tags" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.roncoo', module='shiro-freemarker-tags', version='1.0.0')
)
libraryDependencies += "com.roncoo" % "shiro-freemarker-tags" % "1.0.0"
[com.roncoo/shiro-freemarker-tags "1.0.0"]

Dependencies

compile (2)

Group / Artifact Type Version
org.apache.shiro : shiro-all jar 1.3.2
org.freemarker : freemarker jar 2.3.25-incubating

Project Modules

There are no modules declared in this project.

Apache Shiro tags for Freemarker

本项目是基于 shiro-freemarker-tags,由于在maven中央库里面没有找到,所以fork了过来,同时对项目进行了jar版本的升级,便于后面的开发。

更新

2017-03-04 项目初始化,并升级依赖的2个jar版本。

使用

方法1:使用maven

<!-- https://mvnrepository.com/artifact/com.roncoo/shiro-freemarker-tags -->
<dependency>
    <groupId>com.roncoo</groupId>
    <artifactId>shiro-freemarker-tags</artifactId>
    <version>1.0.0</version>
</dependency>

方法2:jar下载

下载 dist/shiro-freemarker-tags-1.0.0.jar 这个jar放到你的项目里面(注意:该jar是使用jdk8进行打包,如果出现兼容性问题,请使用自己的jdk版本进行打包)

定义一个变量 "shiro", 然后把 ShiroTags这个实例放入去

cfg.setSharedVariable("shiro", new ShiroTags());

在你的Freemarker模板就可以使用

<@shiro.guest>Hello guest!</@shiro.guest>

License

Do what you want with it, just don't blame me if it breaks anything.

com.roncoo

领课网络(RonCoo)

广州市领课网络科技有限公司旗下平台及产品有:领课教育系统、龙果支付系统、领课教育云、龙果学院(自营IT在线教育平台),详情请登录官网 https://www.roncoo.net

Versions

Version
1.0.0