• This repository has been archived on 24/Jul/2021
  • Stars
    star
    127
  • Rank 282,790 (Top 6 %)
  • Language
    Java
  • Created over 13 years ago
  • Updated over 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Freemarker tags for Apache Shiro, mirroring the JSP tags that ship with Shiro

Apache Shiro tags for Freemarker

Apache Shiro comes with some handy JSP tags for doing things like only showing content for anonymous users, logged in users, etc... I'm using Freemarker and didn't want to take a dependency on JSP just for Shiro, so I rewrote the tags for Freemarker.

Install

Either download the dist/shiro-freemarker-tags-0.1-SNAPSHOT.jar or take all the java files and stick them in your project. Simple.

If there's enough demand, I could put this up on Maven.

Usage

Declare a shared variable called "shiro", and assign it to an instance of the ShiroTags class.

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

You should then be able to use the tags in your Freemarker templates.

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

License

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

More Repositories

1

abrash-black-book

Markdown source for Michael Abrash's Graphics Programming Black Book
CSS
4,346
star
2

abrash-zen-of-asm

Markdown source for Michael Abrash's Zen of Assembly Language (1990)
CSS
548
star
3

cognito-local

Local emulator for Amazon Cognito
TypeScript
241
star
4

docu

Simple documentation done simply. .Net documentation generation
C#
159
star
5

pandoc-docker

Docker container for Pandoc with Latex tools
108
star
6

language-docker

Docker syntax highlighting for Atom
51
star
7

locker

A distributed lock service in Go using etcd
Go
49
star
8

halgo

HAL implementation in Go
Go
33
star
9

kindlegen-docker

Docker container for KindleGen
15
star
10

sharpdiff

Diff creation and parsing library for .Net
C#
15
star
11

1password-env

Store Environment Variables in 1Password and retrieve them in temporary shells. Good for AWS credentials.
Shell
15
star
12

atom-pandoc-preview

Pandoc-powered Previewer for Atom
CoffeeScript
14
star
13

cfval

The CloudFormation template validator
Go
10
star
14

yayaml

YaYAML: Yet Another YAML .Net parser
C#
9
star
15

kms-scripts

Bash scripts for encrypting and decrypting with AWS Key Management Service (KMS)
Shell
9
star
16

lambdanator

Teeny-tiny static reflection class
C#
9
star
17

chef-logentries

Logentries Chef cookbook
Ruby
6
star
18

jagregory-gitsharp

C#
6
star
19

aa

JavaScript
6
star
20

sinopia-ansible

Ansible role for the Sinopia NPM registry
6
star
21

play-google-checkout

Google Checkout Play! module
Java
5
star
22

docker-tilestache

Tilestache Docker container
Shell
4
star
23

gopenexchangerates

Open Exchange Rates (http://openexchangerates.org) client in Go
Go
3
star
24

mig

Go SQL migration package
Go
3
star
25

conditionalhttp

Really basic HTTP Conditional GET for Go
Go
3
star
26

cote

Compiled Templates for Go
Go
3
star
27

fakehttp

Fake Go HTTP server for responding with canned data in tests.
Go
2
star
28

cdk-aws-opensearch-api

TypeScript
2
star
29

dotfiles

Vim Script
2
star
30

jagregory.github.com

HTML
2
star
31

play-feedback

Simple AJAX feedback module for the Play! framework
Java
2
star
32

otg-bitmap

Bitmap (bitset) Ruby implementation
Ruby
2
star
33

docker-aws-amicleaner

Docker container for aws-amicleaner
2
star
34

docker-lua

Lua Docker container (ubuntu, lua, luarocks)
Shell
2
star
35

themostawesomegame

Lua game test
Lua
2
star
36

fnh-site

Fluent NHibernate website
Ruby
2
star
37

play-pegdown

Pegdown module for the Play framework
Java
2
star
38

migratefmdb

Basic database migrations using FMDatabase
Objective-C
2
star
39

pactspike

Spike of using Pact for contract testing
Ruby
1
star
40

rubyproto

Minimal Ruby stack for prototyping
Ruby
1
star
41

pngcrush-docker

Docker container for pngcrush
Shell
1
star
42

graphql-example

Example simple GraphQL React app (goes with talk slides)
JavaScript
1
star
43

kiwipromisematchers

RXPromise matchers for Kiwi
Objective-C
1
star
44

meetups

Ruby
1
star
45

guidance

Micro-site generator for project guides/documentation
Ruby
1
star
46

aws-es6-promise

AWS SDK ES6 Promise wrapper
JavaScript
1
star
47

hypermedia

Opinionated hypermedia helpers
Go
1
star
48

derby-d3

JavaScript
1
star
49

devenv

Shell
1
star
50

cloud-config-multipart.js

Javascript multipart file concatenator for cloud-config user data
JavaScript
1
star
51

geomath

Spherical math on earth
Go
1
star
52

homebrew-tools

Ruby
1
star
53

jest-snapshot-issue-reproduction

JavaScript
1
star
54

cognito-trigger-mapper

Scenarios and CDK stack to map out which triggers are fired when by Amazon Cognito
TypeScript
1
star
55

example-express

JavaScript
1
star
56

grafana-dashboard-resource

Shell
1
star
57

play_asia

Ruby Gem for the Play Asia API
Ruby
1
star
58

microformat

Simple Ruby Microformat (schema.org) parser
Ruby
1
star
59

pathmathjs

Messing around with Path maths for SVG path manipulation/subdivision (incomplete)
JavaScript
1
star