mirror of
https://github.com/wassname/template.git
synced 2026-07-03 03:46:55 +08:00
22b1f06a127b8b174a488298e795ece78943e92b
Relying on the mouse events made the boxes on touch screens really janky. I have: - Made opening/closing the touch box purely use touchstart events so it is more reliable and responsive - Made tapping anywhere outside the box close it - Refactored binding into separate link and div functions so that the touch events can be bound correctly
Distill Templates
This is the repository for the distill web framework. If you're interesting in just using the framework to write an article for the Distill journal, visit http://distill.pub/guide/.
The general process for using this framework is to hotlink the compiled code in your dev environment.
<script src="http://distill.pub/template.v1.js"></script>
You can also install it as a local dependency through npm or with yarn.
npm install --D distill-template
If you're interested in submitting pull requests or developing on the framework itself, read on.
Development
Run yarn start to start a watching build rollup server. To view the sample pages in the repo, you can run yarn serve as a separate process which starts a static server. yarn build will run a one-time build.
Testing
Run yarn test. That's it.
Description
Languages
JavaScript
91.7%
CSS
7.5%
HTML
0.8%