Code Monkey home page Code Monkey logo

shiro-freemarker-tags's Introduction

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.

shiro-freemarker-tags's People

Contributors

fengyws avatar jagregory avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.