Skip to content

Commit

Permalink
Replaced latest version with variable
Browse files Browse the repository at this point in the history
Renamed macros.vtl to includes.vtl
  • Loading branch information
bdemers committed Oct 19, 2016
1 parent 276b79c commit 07b38e4
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 47 deletions.
8 changes: 4 additions & 4 deletions 10-minute-tutorial.html.vtl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#parse("templates/macros.vtl")
#parse("templates/includes.vtl")

<h1><a name="10MinuteTutorial-10MinuteTutorialonApacheShiro"></a>10 Minute Tutorial on Apache Shiro</h1>

Expand Down Expand Up @@ -51,13 +51,13 @@
<ol>
<li>Ensure you have JDK 1.6+ and Maven 3.0.3+ installed.</li>
<li>Download the lastest "Source Code Distribution" from the <a href="download.html" title="Download">Download</a>
page. In this example, we're using the 1.3.2 release distribution.
page. In this example, we're using the ${latestRelease} release distribution.
</li>
<li>Unzip the source package:
<div class="code panel" style="border-width: 1px;">
<div class="codeContent panelContent">
<pre class="code-java">
&gt; unzip shiro-root-1.3.2-source-release.zip
&gt; unzip shiro-root-${latestRelease}-source-release.zip
</pre>
</div>
</div>
Expand All @@ -66,7 +66,7 @@
<div class="code panel" style="border-width: 1px;">
<div class="codeContent panelContent">
<pre class="code-java">
&gt; cd shiro-root-1.3.2/samples/quickstart
&gt; cd shiro-root-${latestRelease}/samples/quickstart
</pre>
</div>
</div>
Expand Down
10 changes: 6 additions & 4 deletions documentation.html → documentation.html.vtl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#parse("templates/includes.vtl")

<h1><a name="Documentation-ApacheShiroDocumentation"></a>Apache Shiro Documentation</h1>

<h3><a name="Documentation-Introduction"></a>Introduction</h3>
Expand Down Expand Up @@ -28,11 +30,11 @@ <h3><a name="Documentation-GuidesimportantShiroconcepts%3A"></a>Guides - importa
</ul>

<h3><a name="Documentation-CurrentRelease"></a>Current Release</h3>
<p>Apache Shiro 1.3.2 (<a href="download.html" title="Download">Download</a>)</p>
<p>Apache Shiro ${latestRelease} (<a href="download.html" title="Download">Download</a>)</p>
<ul>
<li><a class="external-link" href="static/1.3.2/apidocs">API</a> (JavaDoc)</li>
<li><a class="external-link" href="static/1.3.2/xref/">Browse Source</a> (XREF)</li>
<li><a class="external-link" href="static/1.3.2/">Maven Static Site</a></li>
<li><a class="external-link" href="static/${latestRelease}/apidocs">API</a> (JavaDoc)</li>
<li><a class="external-link" href="static/${latestRelease}/xref/">Browse Source</a> (XREF)</li>
<li><a class="external-link" href="static/${latestRelease}/">Maven Static Site</a></li>
<!-- <li><a class="external-link"
href="https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12310950&version=12323469&amp;styleName=Html&amp;projectId=12310950">Release
Notes</a></li> -->
Expand Down
76 changes: 39 additions & 37 deletions download.html → download.html.vtl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#parse("templates/includes.vtl")

<h1><a name="Download-DownloadApacheShiro"></a>Download Apache Shiro</h1>

<table align="right" width="275" style="margin-left: 20px; margin-bottom: 20px; border-style: solid; border-width: 2px; border-color: navy" cellpadding="10px">
Expand Down Expand Up @@ -27,7 +29,7 @@ <h3><a href="java-authorization-guide.html">Java Authorization Guide</a></h3>
</tr>
</table>

<p>Apache Shiro 1.3.2 is the current stable release (Java 1.6+ JVM).</p>
<p>Apache Shiro ${latestRelease} is the current stable release (Java 1.6+ JVM).</p>

<p>To download Shiro please follow the instructions below.</p>

Expand All @@ -43,11 +45,11 @@ <h3>Releases</h3>
<div>
<ul>
<li>
<a href="#latest">Latest Stable Release (1.3.2)</a>
<a href="#latest">Latest Stable Release (${latestRelease})</a>
<ul>
<li><a href="#latestBinary">1.3.2 Binary Distribution</a></li>
<li><a href="#latestSource">1.3.2 Source Code Distribution</a></li>
<li><a href="#latestGit">1.3.2 Git Source repository</a></li>
<li><a href="#latestBinary">${latestRelease} Binary Distribution</a></li>
<li><a href="#latestSource">${latestRelease} Source Code Distribution</a></li>
<li><a href="#latestGit">${latestRelease} Git Source repository</a></li>
</ul>
</li>
<li><a href="#previous">Previous Releases</a>
Expand All @@ -72,9 +74,9 @@ <h3>Releases</h3>
</div>


<h2><a name="latest"></a>Latest Stable Release (1.3.2)</h2>
<h2><a name="latest"></a>Latest Stable Release (${latestRelease})</h2>

<h3><a name="latestBinary"></a>1.3.2 Binary Distribution</h3>
<h3><a name="latestBinary"></a>${latestRelease} Binary Distribution</h3>

<p>Associated documentation can be found <a href="documentation.html" title="Documentation">here</a></p>

Expand All @@ -94,7 +96,7 @@ <h3><a name="latestBinary"></a>1.3.2 Binary Distribution</h3>
</tr>
<tr>
<td colspan="1" rowspan="1" class="confluenceTd"><a class="external-link"
href="http://repo1.maven.org/maven2/org/apache/shiro/shiro-all/1.3.2/shiro-all-1.3.2.jar">shiro-all</a></td>
href="http://repo1.maven.org/maven2/org/apache/shiro/shiro-all/${latestRelease}/shiro-all-${latestRelease}.jar">shiro-all</a></td>
<td colspan="1" rowspan="1" class="confluenceTd"><b>Not Recommended</b></td>
<td colspan="1" rowspan="1" class="confluenceTd"> Includes all binary functionality for Shiro (without
dependencies), useful in certain build environments (e.g. Ant). However, this is <b>NOT</b>
Expand All @@ -105,14 +107,14 @@ <h3><a name="latestBinary"></a>1.3.2 Binary Distribution</h3>
</tr>
<tr>
<td colspan="1" rowspan="1" class="confluenceTd"><a class="external-link"
href="http://repo1.maven.org/maven2/org/apache/shiro/shiro-core/1.3.2/shiro-core-1.3.2.jar">shiro-core</a></td>
href="http://repo1.maven.org/maven2/org/apache/shiro/shiro-core/${latestRelease}/shiro-core-${latestRelease}.jar">shiro-core</a></td>
<td colspan="1" rowspan="1" class="confluenceTd">
<div class="code panel" style="border-width: 1px;">
<div class="codeContent panelContent">
<pre class="code-java">&lt;dependency&gt;
&lt;groupId&gt;org.apache.shiro&lt;/groupId&gt;
&lt;artifactId&gt;shiro-core&lt;/artifactId&gt;
&lt;version&gt;1.3.2&lt;/version&gt;
&lt;version&gt;${latestRelease}&lt;/version&gt;
&lt;/dependency&gt;</pre>
</div>
</div>
Expand All @@ -125,14 +127,14 @@ <h3><a name="latestBinary"></a>1.3.2 Binary Distribution</h3>
</tr>
<tr>
<td colspan="1" rowspan="1" class="confluenceTd"><a class="external-link"
href="http://repo1.maven.org/maven2/org/apache/shiro/shiro-web/1.3.2/shiro-web-1.3.2.jar">shiro-web</a></td>
href="http://repo1.maven.org/maven2/org/apache/shiro/shiro-web/${latestRelease}/shiro-web-${latestRelease}.jar">shiro-web</a></td>
<td colspan="1" rowspan="1" class="confluenceTd">
<div class="code panel" style="border-width: 1px;">
<div class="codeContent panelContent">
<pre class="code-java">&lt;dependency&gt;
&lt;groupId&gt;org.apache.shiro&lt;/groupId&gt;
&lt;artifactId&gt;shiro-web&lt;/artifactId&gt;
&lt;version&gt;1.3.2&lt;/version&gt;
&lt;version&gt;${latestRelease}&lt;/version&gt;
&lt;/dependency&gt;</pre>
</div>
</div>
Expand All @@ -141,14 +143,14 @@ <h3><a name="latestBinary"></a>1.3.2 Binary Distribution</h3>
</tr>
<tr>
<td colspan="1" rowspan="1" class="confluenceTd"><a class="external-link"
href="http://repo1.maven.org/maven2/org/apache/shiro/shiro-aspectj/1.3.2/shiro-aspectj-1.3.2.jar">shiro-aspectj</a></td>
href="http://repo1.maven.org/maven2/org/apache/shiro/shiro-aspectj/${latestRelease}/shiro-aspectj-${latestRelease}.jar">shiro-aspectj</a></td>
<td colspan="1" rowspan="1" class="confluenceTd">
<div class="code panel" style="border-width: 1px;">
<div class="codeContent panelContent">
<pre class="code-java">&lt;dependency&gt;
&lt;groupId&gt;org.apache.shiro&lt;/groupId&gt;
&lt;artifactId&gt;shiro-aspectj&lt;/artifactId&gt;
&lt;version&gt;1.3.2&lt;/version&gt;
&lt;version&gt;${latestRelease}&lt;/version&gt;
&lt;/dependency&gt;</pre>
</div>
</div>
Expand All @@ -160,14 +162,14 @@ <h3><a name="latestBinary"></a>1.3.2 Binary Distribution</h3>
</tr>
<tr>
<td colspan="1" rowspan="1" class="confluenceTd"><a class="external-link"
href="http://repo1.maven.org/maven2/org/apache/shiro/shiro-cas/1.3.2/shiro-cas-1.3.2.jar">shiro-cas</a></td>
href="http://repo1.maven.org/maven2/org/apache/shiro/shiro-cas/${latestRelease}/shiro-cas-${latestRelease}.jar">shiro-cas</a></td>
<td colspan="1" rowspan="1" class="confluenceTd">
<div class="code panel" style="border-width: 1px;">
<div class="codeContent panelContent">
<pre class="code-java">&lt;dependency&gt;
&lt;groupId&gt;org.apache.shiro&lt;/groupId&gt;
&lt;artifactId&gt;shiro-cas&lt;/artifactId&gt;
&lt;version&gt;1.3.2&lt;/version&gt;
&lt;version&gt;${latestRelease}&lt;/version&gt;
&lt;/dependency&gt;</pre>
</div>
</div>
Expand All @@ -182,14 +184,14 @@ <h3><a name="latestBinary"></a>1.3.2 Binary Distribution</h3>
</tr>
<tr>
<td colspan="1" rowspan="1" class="confluenceTd"><a class="external-link"
href="http://repo1.maven.org/maven2/org/apache/shiro/shiro-ehcache/1.3.2/shiro-ehcache-1.3.2.jar">shiro-ehcache</a></td>
href="http://repo1.maven.org/maven2/org/apache/shiro/shiro-ehcache/${latestRelease}/shiro-ehcache-${latestRelease}.jar">shiro-ehcache</a></td>
<td colspan="1" rowspan="1" class="confluenceTd">
<div class="code panel" style="border-width: 1px;">
<div class="codeContent panelContent">
<pre class="code-java">&lt;dependency&gt;
&lt;groupId&gt;org.apache.shiro&lt;/groupId&gt;
&lt;artifactId&gt;shiro-ehcache&lt;/artifactId&gt;
&lt;version&gt;1.3.2&lt;/version&gt;
&lt;version&gt;${latestRelease}&lt;/version&gt;
&lt;/dependency&gt;</pre>
</div>
</div>
Expand All @@ -202,14 +204,14 @@ <h3><a name="latestBinary"></a>1.3.2 Binary Distribution</h3>

<tr>
<td colspan="1" rowspan="1" class="confluenceTd"><a class="external-link"
href="http://repo1.maven.org/maven2/org/apache/shiro/shiro-hazelcast/1.3.2/shiro-hazelcast-1.3.2.jar">shiro-hazelcast</a></td>
href="http://repo1.maven.org/maven2/org/apache/shiro/shiro-hazelcast/${latestRelease}/shiro-hazelcast-${latestRelease}.jar">shiro-hazelcast</a></td>
<td colspan="1" rowspan="1" class="confluenceTd">
<div class="code panel" style="border-width: 1px;">
<div class="codeContent panelContent">
<pre class="code-java">&lt;dependency&gt;
&lt;groupId&gt;org.apache.shiro&lt;/groupId&gt;
&lt;artifactId&gt;shiro-hazelcast&lt;/artifactId&gt;
&lt;version&gt;1.3.2&lt;/version&gt;
&lt;version&gt;${latestRelease}&lt;/version&gt;
&lt;/dependency&gt;</pre>
</div>
</div>
Expand All @@ -221,14 +223,14 @@ <h3><a name="latestBinary"></a>1.3.2 Binary Distribution</h3>
</tr>
<tr>
<td colspan="1" rowspan="1" class="confluenceTd"><a class="external-link"
href="http://repo1.maven.org/maven2/org/apache/shiro/shiro-features/1.3.2/shiro-features-1.3.2-features.xml">shiro-features</a></td>
href="http://repo1.maven.org/maven2/org/apache/shiro/shiro-features/${latestRelease}/shiro-features-${latestRelease}-features.xml">shiro-features</a></td>
<td colspan="1" rowspan="1" class="confluenceTd">
<div class="code panel" style="border-width: 1px;">
<div class="codeContent panelContent">
<pre class="code-java">&lt;dependency&gt;
&lt;groupId&gt;org.apache.shiro&lt;/groupId&gt;
&lt;artifactId&gt;shiro-features&lt;/artifactId&gt;
&lt;version&gt;1.3.2&lt;/version&gt;
&lt;version&gt;${latestRelease}&lt;/version&gt;
&lt;/dependency&gt;</pre>
</div>
</div>
Expand All @@ -240,14 +242,14 @@ <h3><a name="latestBinary"></a>1.3.2 Binary Distribution</h3>
</tr>
<tr>
<td colspan="1" rowspan="1" class="confluenceTd"><a class="external-link"
href="http://repo1.maven.org/maven2/org/apache/shiro/shiro-guice/1.3.2/shiro-guice-1.3.2.jar">shiro-guice</a></td>
href="http://repo1.maven.org/maven2/org/apache/shiro/shiro-guice/${latestRelease}/shiro-guice-${latestRelease}.jar">shiro-guice</a></td>
<td colspan="1" rowspan="1" class="confluenceTd">
<div class="code panel" style="border-width: 1px;">
<div class="codeContent panelContent">
<pre class="code-java">&lt;dependency&gt;
&lt;groupId&gt;org.apache.shiro&lt;/groupId&gt;
&lt;artifactId&gt;shiro-guice&lt;/artifactId&gt;
&lt;version&gt;1.3.2&lt;/version&gt;
&lt;version&gt;${latestRelease}&lt;/version&gt;
&lt;/dependency&gt;</pre>
</div>
</div>
Expand All @@ -259,14 +261,14 @@ <h3><a name="latestBinary"></a>1.3.2 Binary Distribution</h3>
</tr>
<tr>
<td colspan="1" rowspan="1" class="confluenceTd"><a class="external-link"
href="http://repo1.maven.org/maven2/org/apache/shiro/shiro-quartz/1.3.2/shiro-quartz-1.3.2.jar">shiro-quartz</a></td>
href="http://repo1.maven.org/maven2/org/apache/shiro/shiro-quartz/${latestRelease}/shiro-quartz-${latestRelease}.jar">shiro-quartz</a></td>
<td colspan="1" rowspan="1" class="confluenceTd">
<div class="code panel" style="border-width: 1px;">
<div class="codeContent panelContent">
<pre class="code-java">&lt;dependency&gt;
&lt;groupId&gt;org.apache.shiro&lt;/groupId&gt;
&lt;artifactId&gt;shiro-quartz&lt;/artifactId&gt;
&lt;version&gt;1.3.2&lt;/version&gt;
&lt;version&gt;${latestRelease}&lt;/version&gt;
&lt;/dependency&gt;</pre>
</div>
</div>
Expand All @@ -278,14 +280,14 @@ <h3><a name="latestBinary"></a>1.3.2 Binary Distribution</h3>
</tr>
<tr>
<td colspan="1" rowspan="1" class="confluenceTd"><a class="external-link"
href="http://repo1.maven.org/maven2/org/apache/shiro/shiro-spring/1.3.2/shiro-spring-1.3.2.jar">shiro-spring</a></td>
href="http://repo1.maven.org/maven2/org/apache/shiro/shiro-spring/${latestRelease}/shiro-spring-${latestRelease}.jar">shiro-spring</a></td>
<td colspan="1" rowspan="1" class="confluenceTd">
<div class="code panel" style="border-width: 1px;">
<div class="codeContent panelContent">
<pre class="code-java">&lt;dependency&gt;
&lt;groupId&gt;org.apache.shiro&lt;/groupId&gt;
&lt;artifactId&gt;shiro-spring&lt;/artifactId&gt;
&lt;version&gt;1.3.2&lt;/version&gt;
&lt;version&gt;${latestRelease}&lt;/version&gt;
&lt;/dependency&gt;</pre>
</div>
</div>
Expand All @@ -297,7 +299,7 @@ <h3><a name="latestBinary"></a>1.3.2 Binary Distribution</h3>
</tr>
<tr>
<td colspan="1" rowspan="1" class="confluenceTd"><a class="external-link"
href="http://repo1.maven.org/maven2/org/apache/shiro/tools/shiro-tools-hasher/1.3.2/shiro-tools-hasher-1.3.2-cli.jar">shiro-tools-hasher-cli</a></td>
href="http://repo1.maven.org/maven2/org/apache/shiro/tools/shiro-tools-hasher/${latestRelease}/shiro-tools-hasher-${latestRelease}-cli.jar">shiro-tools-hasher-cli</a></td>
<td colspan="1" rowspan="1" class="confluenceTd"><b>Not Relevant</b></td>
<td colspan="1" rowspan="1" class="confluenceTd"> A command-line program to perform hashing (MD5, SHA,
etc) for files, streams and passwords. Note that this is a command line program and not intended to
Expand All @@ -306,7 +308,7 @@ <h3><a name="latestBinary"></a>1.3.2 Binary Distribution</h3>
<div class="code panel" style="border-width: 1px;">
<div class="codeContent panelContent">
<pre class="code-java">
java -jar shiro-tools-hasher-1.3.2-cli.jar
java -jar shiro-tools-hasher-${latestRelease}-cli.jar
</pre>
</div>
</div>
Expand All @@ -317,27 +319,27 @@ <h3><a name="latestBinary"></a>1.3.2 Binary Distribution</h3>
</div>


<h3><a name="latestSource"></a>1.3.2 Source Code Distribution</h3>
<h3><a name="latestSource"></a>${latestRelease} Source Code Distribution</h3>

<p>The source bundle requires JDK 1.6 and Maven 3.0.3+ to build:</p>

<p><a class="external-link" href="http://www.apache.org/dyn/closer.cgi/shiro/1.3.2/shiro-root-1.3.2-source-release.zip">zip</a>
<p><a class="external-link" href="http://www.apache.org/dyn/closer.cgi/shiro/${latestRelease}/shiro-root-${latestRelease}-source-release.zip">zip</a>
(<a class="external-link"
href="http://www.apache.org/dyn/closer.cgi/shiro/1.3.2/shiro-root-1.3.2-source-release.zip.asc">pgp</a>, <a
href="http://www.apache.org/dyn/closer.cgi/shiro/${latestRelease}/shiro-root-${latestRelease}-source-release.zip.asc">pgp</a>, <a
class="external-link"
href="http://www.apache.org/dyn/closer.cgi/shiro/1.3.2/shiro-root-1.3.2-source-release.zip.md5">md5</a>, <a
href="http://www.apache.org/dyn/closer.cgi/shiro/${latestRelease}/shiro-root-${latestRelease}-source-release.zip.md5">md5</a>, <a
class="external-link"
href="http://www.apache.org/dyn/closer.cgi/shiro/1.3.2/shiro-root-1.3.2-source-release.zip.sha1">sha1</a>)
href="http://www.apache.org/dyn/closer.cgi/shiro/${latestRelease}/shiro-root-${latestRelease}-source-release.zip.sha1">sha1</a>)
</p>

<h3><a name="latestGit"></a>1.3.2 Git Source repository</h3>
<h3><a name="latestGit"></a>${latestRelease} Git Source repository</h3>

<p>The source can be cloned anonymously from Git with this command:</p>
<div class="code panel" style="border-width: 1px;">
<div class="codeContent panelContent">
<pre class="code-java">
git clone https:<span class="code-comment">//github.com/apache/shiro.git</span>
git checkout shiro-root-1.3.2 -b shiro-root-1.3.2
git checkout shiro-root-${latestRelease} -b shiro-root-${latestRelease}
</pre>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion templates/default.vtl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
-->
<html>

#parse("templates/macros.vtl")
#parse("templates/includes.vtl")

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
Expand Down
Loading

0 comments on commit 07b38e4

Please sign in to comment.