Changeset View
Changeset View
Standalone View
Standalone View
build.js
| Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | |||||
| serverData.getLineEntries = function (entry) { | serverData.getLineEntries = function (entry) { | ||||
| var entries; | var entries; | ||||
| if (typeof entry[1] === 'string') { | if (typeof entry[1] === 'string') { | ||||
| entries = [entry[1]]; | entries = [entry[1]]; | ||||
| } else { | } else { | ||||
| entries = entry[1]; | entries = entry[1]; | ||||
| } | } | ||||
| return entries.map(text => function (text) { | return entries.map(text => autolinker.link(text)); | ||||
| return autolinker.link(text); | |||||
| }); | |||||
| } | } | ||||
| /* ------------------------------------------------------------- | /* ------------------------------------------------------------- | ||||
| Render template | Render template | ||||
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ | ||||
| require('ect')({ | require('ect')({ | ||||
| root: __dirname + '/templates', | root: __dirname + '/templates', | ||||
| Show All 14 Lines | |||||
Nasqueron DevCentral · If it had been much bigger the moon would have had a core of ice. · Powered by Phabricator