mirror of
https://github.com/wassname/template.git
synced 2026-07-02 10:47:13 +08:00
940b70ce5b089538c0eea524cc53f91cc1bc6e63
Browsers such as Safari do not natively understand ES6 functions, thus during development only Chrome can be used when the hover box is imported into the page. (On Safari the following error occurs: ```SyntaxError: Unexpected token ')' appendChild — index.html:77 hoverBox — template.v1.js:18012 renderOnLoad — template.v1.js:18217 (anonymous function) — template.v1.js:18227 ```, this is caused by the function arrow notation not being parsed).
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%