gregives / eleventy-load-html Goto Github PK
View Code? Open in Web Editor NEWFind dependencies in and minify HTML using eleventy-load
License: MIT License
Find dependencies in and minify HTML using eleventy-load
License: MIT License
Eleventy-load is a fantastic solution. I like the way it leverages the Webpack loaders concept. One small issue was I couldn't figure out the path to use for the scss file (until I read the source code). Would be worth clarifying in docs.
Thanks again for this project ๐
Numeric HTML entities such as +
are unescaped when processed by the html loader.
This appears to be due to the use of JSDOM to parse the HTML template output. The subsequent call to serialize()
cannot return unescaped entities to their original encoding.
I don't think its practical to resolve the issue in this project but have raised it in case others encounter the problem.
I've been using a template shortcode to obfuscate personal data (e.g. email addresses) by converting the string to html entities. This isn't a foolproof method but should hide the information from rudimentary scrapers.
A potential solution is to post-process the output of the loader. The following gist is a simple loader implementation that will work for static information (e.g. the site contact email) eleventy-load-obfuscate.js
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.