From 90dd1dfc5d61352bce0cf5a3f0401da9e39da2b5 Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Wed, 29 Jun 2016 23:31:50 -0700 Subject: [PATCH] Updated pandoc task. --- README.html | 78 ++++++++++++++++++---------------------------------- build.gradle | 2 +- 2 files changed, 27 insertions(+), 53 deletions(-) diff --git a/README.html b/README.html index e8d42c7..7f3446d 100644 --- a/README.html +++ b/README.html @@ -6,76 +6,54 @@ + -

HttpStatus JSP Tag Library

-

License (3-Clause BSD) Dependency Status Build Status Build status release Maven Central Download

+

Build status Maven Central Download

A simple JSP Tag Library to display the code, reason and/or cause for HTTP status codes in JSP error pages.


For example:

-
<%@ page isErrorPage="true" %>
+
<%@ page isErrorPage="true" %>
 <%@ taglib prefix="hs" uri="http://erik.thauvin.net/taglibs/httpstatus" %>
 <html><head>
 <title><hs:code/> <hs:reason default="Server Error"/></title>
 </head>
 <h1><hs:reason default="Server Error"/></h1>
 Cause: <pre><hs:cause default="Unable to complete your request."/></pre>
-...
+...

or

-
<%@ page isErrorPage="true" import="net.thauvin.erik.httpstatus.Reasons" %>
-<%= Reasons.getReasonPhrase(pageContext.getErrorData().getStatusCode()) %>
+
<%@ page isErrorPage="true" import="net.thauvin.erik.httpstatus.Reasons" %>
+<%= Reasons.getReasonPhrase(pageContext.getErrorData().getStatusCode()) %>

would display on a 501 status code:

Not Implemented

hs:cause

The <hs:cause/> tag displays the cause of current HTTP status code, if any. A shorthand for:

-
<%= pageContext.getErrorData().getThrowable().getCause().getLocalizedMessage() %>
+
<%= pageContext.getErrorData().getThrowable().getCause().getLocalizedMessage() %>

Optional attributes are:

- ---- +
@@ -95,14 +73,10 @@ Cause: <pre><hs:cause default<
Attribute

hs:code

The <hs:code/> tag displays the current HTTP status code, if any. A shorthand for:

-
<%= pageContext.getErrorData().getStatusCode() %>
+
<%= pageContext.getErrorData().getStatusCode() %>

hs:reason

The <hs:reason/> tag displays the reason for a HTTP status code, if any. Optional attributes are:

- ---- +
@@ -454,10 +428,10 @@ Cause: <pre><hs:cause default< compile 'net.thauvin.erik.httpstatus:httpstatus:1.0.3' }

or as a Maven artifact:

-
<dependency>
+
<dependency>
     <groupId>net.thauvin.erik.httpstatus</groupId>
     <artifactId>httpstatus</artifactId>
     <version>1.0.3</version>
-</dependency>
+</dependency> diff --git a/build.gradle b/build.gradle index 0637eae..efea591 100644 --- a/build.gradle +++ b/build.gradle @@ -223,7 +223,7 @@ task pandoc(type: Exec) { } else { - executable '/usr/local/bin/pandoc' + executable 'pandoc' args pandoc_args } standardOutput = new ByteArrayOutputStream()
Attribute