anthonyastige / metalsmith-picset-handlebars-helper Goto Github PK
View Code? Open in Web Editor NEWUses generated responsive image resolutions :: Those generated by metalsmith-picset-generate display in browser via a <picture> element
Uses generated responsive image resolutions :: Those generated by metalsmith-picset-generate display in browser via a <picture> element
Ok, I am at a loss - I'm getting the following error and I have tried everything under the moon. Any ideas? I appreciate your input. Thnx
{ Error: Missing helper: "picset"
at Object. (C:\xampp\htdocs\node_modules\handlebars\dist\cjs\handlebars\helpers\helper-missing.js:19:13)
at Object.eval [as main] (eval at createFunctionContext (C:\xampp\htdocs\node_modules\handlebars\dist\cjs\handlebars\compiler\javascript-compiler.js:254:23), :25:74)
at main (C:\xampp\htdocs\node_modules\handlebars\dist\cjs\handlebars\runtime.js:175:32)
at Object.ret (C:\xampp\htdocs\node_modules\handlebars\dist\cjs\handlebars\runtime.js:178:12)
at Object.ret [as wrapper/main/article] (C:\xampp\htdocs\node_modules\handlebars\dist\cjs\handlebars\compiler\compiler.js:526:21)
at Object.invokePartialWrapper [as invokePartial] (C:\xampp\htdocs\node_modules\handlebars\dist\cjs\handlebars\runtime.js:72:46)
at eval (eval at createFunctionContext (C:\xampp\htdocs\node_modules\handlebars\dist\cjs\handlebars\compiler\javascript-compiler.js:254:23), :5:31)
at prog (C:\xampp\htdocs\node_modules\handlebars\dist\cjs\handlebars\runtime.js:221:12)
at execIteration (C:\xampp\htdocs\node_modules\handlebars\dist\cjs\handlebars\helpers\each.js:51:19)
at Object. (C:\xampp\htdocs\node_modules\handlebars\dist\cjs\handlebars\helpers\each.js:61:13)
at eval (eval at createFunctionContext (C:\xampp\htdocs\node_modules\handlebars\dist\cjs\handlebars\compiler\javascript-compiler.js:254:23), :5:34)
at Object.prog [as fn] (C:\xampp\htdocs\node_modules\handlebars\dist\cjs\handlebars\runtime.js:221:12)
at Object. (C:\xampp\htdocs\node_modules\handlebars\dist\cjs\handlebars\helpers\if.js:19:22)
at Object.eval [as main] (eval at createFunctionContext (C:\xampp\htdocs\node_modules\handlebars\dist\cjs\handlebars\compiler\javascript-compiler.js:254:23), :12:32)
at main (C:\xampp\htdocs\node_modules\handlebars\dist\cjs\handlebars\runtime.js:175:32)
at ret (C:\xampp\htdocs\node_modules\handlebars\dist\cjs\handlebars\runtime.js:178:12)
description: undefined,
fileName: undefined,
lineNumber: undefined,
message: 'Missing helper: "picset"',
name: 'Error',
number: undefined }
It might be optimal to set default quality to 100 for different filetype sources
Reading quality from jpg would be iffy as it's not stored in the format by default, so don't go there.
Right now we redundantly add the attribute to both the <source>
and the <img>
I work a lot in bootstrap and would like helpers to generate the sizes=""
parameter more easily.
However this plugin should be generic enough to work outside of bootstrap.
Maybe another plugin to help this one? Would prefer not to extend it, but we could if needed.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.