From: Mike Taylor Date: Thu, 29 May 2014 15:21:34 +0000 (+0100) Subject: Reference widget passes the configuration item "paragraphs" into the X-Git-Tag: 1.0.0~564 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=95921674a9bcdbb9e656297b8f6a7ce48e9ac47e;p=mkws-moved-to-github.git Reference widget passes the configuration item "paragraphs" into the mkws-paragraphs helper, specifying how many paragraphs to render. If this is absent (or zero), all paragraphs obtained from the target are rendered. --- diff --git a/src/mkws-widget-reference.js b/src/mkws-widget-reference.js index 74763d7..041d9e4 100644 --- a/src/mkws-widget-reference.js +++ b/src/mkws-widget-reference.js @@ -12,7 +12,7 @@ mkws.registerWidgetType('Reference', function() { {{#if md-title-responsibility}}\ {{md-title-responsibility}}\ {{/if}}\ - {{{mkws-paragraphs md-description}}}\ + {{{mkws-paragraphs md-description ' + this.config.paragraphs + '}}}\

Wikipedia

\ '); });