GitShow/sindresorhus/gulp-template
sindresorhus

gulp-template

Render/precompile Lodash templates

by sindresorhus
gulp-pluginjavascriptlodashnodejstemplateunderscore
Star on GitHubForknpm

JavaScript

288 stars78 forks8 contributorsQuiet · 9mo agoSince 2013v6.1.0MIT

Meet the team

See all 8 on GitHub →
sindresorhus
sindresorhus41 contributions
Turbo87
Turbo872 contributions
demurgos
demurgos1 contribution
fodier
fodier1 contribution
mathiasbynens
mathiasbynens1 contribution
t1st3
t1st31 contribution

Languages

View on GitHub →
JavaScript100%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
71
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
cyberz
SyntaxError: Unexpected token .ClosedIssue

On js file with size 4.2 Mb

cyberz · 9mo ago
arimus
Cryptic error on template parse error - not enough details provided to properly track down the issueClosedIssue

I got the following error which was less than simple to track down. I had to comment out blocks at a time in a template that was being parsed in Angular2 until I narrowed it down. It turned out to be that in my template I had: ${{removeContribution.amount}} instead of {{removeContribution.amount}} A typo on my part, however it'd be great to die with a more sensical error that perhaps even pointed out the where. I had to modify the source code to dump the file it was parsing, so I could determine which template it was dying on...then proceed to figure out why. /Users/arimus/workspace/project/node_modules/gulp-template/node_modules/lodash/lodash.js:487 case 0: return func.call(thisArg); ^ SyntaxError: Unexpected token . at /Users/arimus/workspace/project/node_modules/gulp-template/node_modules/lodash/lodash.js:14776:16 at apply (/Users/arimus/workspace/project/node_modules/gulp-template/node_modules/lodash/lodash.js:487:27) at /Users/arimus/workspace/project/node_modules/gulp-template/node_modules/lodash/lodash.js:15160:16 at apply (/Users/arimus/workspace/project/node_modules/gulp-template/node_modules/lodash/lodash.js:489:27) at /Users/arimus/workspace/project/node_modules/gulp-template/node_modules/lodash/lodash.js:6558:16 at template (/Users/arimus/workspace/project/node_modules/gulp-template/node_modules/lodash/lodash.js:14775:20) at DestroyableTransform._transform (/Users/arimus/workspace/project/node_modules/gulp-template/index.js:21:14) at DestroyableTransform.Transform._read (/Users/arimus/workspace/project/node_modules/readable-stream/lib/_stream_transform.js:159:10) at DestroyableTransform.Readable.read (/Users/arimus/workspace/project/node_modules/readable-stream/lib/_stream_readable.js:357:10) at flow (/Users/arimus/workspace/project/node_modules/readable-stream/lib/_stream_readable.js:727:26)

arimus · 9mo ago
riteshsainju
ReferenceError: entityValue is not defined at eval (lodash.templateSources[27]:11:10)ClosedIssue

Hi i am getting the following error: !lodash error

riteshsainju · 9mo ago
Structured data for AI agents

Repository: sindresorhus/gulp-template. Description: Render/precompile Lodash templates Stars: 288, Forks: 78. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Topics: gulp-plugin, javascript, lodash, nodejs, template, underscore. Latest release: v6.1.0 (9mo ago). Open PRs: 0, open issues: 0. Last activity: 9mo ago. Community health: 71%. Top contributors: sindresorhus, Turbo87, demurgos, fodier, mathiasbynens, t1st3.

·@ofershap

Replace github.com with gitshow.dev