Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sangupta/velocity-tags
Collection of useful Velocity directives
https://github.com/sangupta/velocity-tags
Last synced: 4 days ago
JSON representation
Collection of useful Velocity directives
- Host: GitHub
- URL: https://github.com/sangupta/velocity-tags
- Owner: sangupta
- License: other
- Created: 2016-04-28T10:14:48.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-05-20T20:50:24.000Z (over 2 years ago)
- Last Synced: 2024-04-16T11:17:29.553Z (7 months ago)
- Language: Java
- Size: 12.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Velocity Tags
=============`velocity-tags` is a collection of useful Apache Velocity custom directives that I
have created and used in multiple projects over time.## Available Directives
* `atomicNum` - writes the value of AtomicInteger or AtomicLong
* `date` - converts given epoch millis to Date and displays it as String
* `encodeURIComponent` - Encodes the given value as URI encoded component
* `escapeHTML` - writes a HTML escaped version of the given value
* `gson` - writes the Gson based JSON value of the given object
* `mapGet` - writes the value of the provided key from the given Map instance
* `pageURI` - strips off the scheme and domain part from a URL before writing it
* `readableByteSize` - convert the given number to a readable byte-size string
* `readableTime` - convert the given millis to a readable time-based string## License
```
velocity-tags - Collection of useful Apache Velocity directives
Copyright (c) 2010-2016, Sandeep Gupta
http://sangupta.com/projects/velocity-tags
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
```