From b98d7f757530192e67755e717ba7440113daba68 Mon Sep 17 00:00:00 2001 From: Nick Shvelidze Date: Tue, 30 Aug 2016 16:10:27 +0400 Subject: [PATCH] Fix apidoc methods --- package.json | 2 +- template/index.html | 2 +- template/utils/handlebars_helper.js | 7 +++++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index c2954f3..89e66e1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "apidoc-template-bs3", - "version": "0.1.2", + "version": "0.2.0", "description": "Bootstrap 3 template for apiDoc", "main": "template/index.html", "scripts": { diff --git a/template/index.html b/template/index.html index f4fd160..a29756a 100644 --- a/template/index.html +++ b/template/index.html @@ -120,7 +120,7 @@

{{article.groupTitle}}{{#if article.title}} - {{article.title}}{{/if}}

{{{nl2br article.description}}}

{{/if}} -
{{article.url}}
+
{{toUpperCase article.type}} {{article.url}}
{{#if article.permission}}

diff --git a/template/utils/handlebars_helper.js b/template/utils/handlebars_helper.js index b01113b..5ed11bc 100644 --- a/template/utils/handlebars_helper.js +++ b/template/utils/handlebars_helper.js @@ -113,6 +113,13 @@ define([ return (value && typeof value === 'string') ? value.toLowerCase() : ''; }); + /** + * + */ + Handlebars.registerHelper('toUpperCase', function(value) { + return (value && typeof value === 'string') ? value.toUpperCase() : ''; + }); + /** * */