bemit / create-amp-page Goto Github PK
View Code? Open in Web Editor NEWStatic site generator for AMP with Twig templates and a lot of config options.
License: MIT License
Static site generator for AMP with Twig templates and a lot of config options.
License: MIT License
There must be nothing included for JS handling, all webpack, babel etc. related packages and configs must be provided from implementing side.
But there should be an easy way to just add the needed gulp task and be happy, without the need to overwrite e.g. watch manually.
// issue stub
Optional media processors, make imagemin & plugins optional with require.resolve
// issue stub
Configurable postcss plugins, autoprefixer and css nano.
Add examples on what is possible by default through some config.js file
Add option to specify special html folders where the CSS is inlined to html tags, using the head style tags as source.
Needed for email template optimizing.
Support for injecting variables from frontmatter into the Sass build process to overwrite e.g. theming colors.
Remove unused CSS:
// issue stub
Add config options to not only use .twig
files for pages
resolution.
Add options to specify how deeply nested pages may be existing.
Image convertions like PNG to JPG, for multiple dimensions, slicing and for e.g. transparent png to jpg also files for different backgrounds.
Cleaning and minimizing HTML works either through html-minifier
or @ampproject/toolbox-optimizer
.
For HTML with the inline CSS clean task #5 removes also unused styles in body.
See AmpCreatorOptions for ways to configure.
Helper functions for Twig,
uid
: creating an unique id for e.g. an input + label combinationtranslate
with an small dictionary libraryrenderBlock
for helping rendering some object based astAdd AMP Optimizer features as middleware to htmlFactory
.
Support for dynamic injectStyle
value, depending on file/path and frontmatter/data.
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.