Add HasAnyRoles to Locs
refactoring code, add isAuthenticatedOrRemembered method.
Add tags feature, refactoring some code
Refactoring hasAnyRoles method
Why have you re-factored this into method overloads? Method overloads are typically not that good and considering we have default params in scala its preferable to use them.
These all need better non "-Tag" names.
Why do they all have "Tag" suffixed? We're not making JSP taglibs, and its not idiomatic with the other snippets i've already made. Can you revise that? I've also added a couple of other notes inline.
Thanks for contributing.
Change names some objects, refactoring
I just gave the names with "Tag" suffixed as in Apache Shiro docs http://shiro.apache.org/web.html#Web-taglibrary .
Yes I know, but its not idiomatic for the rest of this library, as it would mean that you would end up writing:
Which to me, seems silly because clearly, it is a tag, you dont need to suffix the word. It just screams Java is all and I want any new snippets to match the existing ones for style.
Yes, I change names as:
Thanks for changing those names. The only thing that needs fixing now is the case statements in shiro.scala... those names represent the element names used within the markup, so they also need "tag" removing from them to bring them into line with the class names. Once thats done i'll happily merge this. Thanks for contributing.
Change names for snippet dispatch
yes, sorry. I fix it.
Merge pull request #5 from lunserv/add_Tags_Feature
Added a range of new tags to have parity with those available in the regular Java Shiro edition.