All Projects → postlight → Trimmings

postlight / Trimmings

Licence: other
🌲 Get back to HTML.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Trimmings

Tutorials.ubuntu.com
Stars: ✭ 169 (-11.05%)
Mutual labels:  website
Flutterminimalwebsite
A minimalistic Flutter website template for blogs and portfolios. Demo: https://gallery.codelessly.com/flutterwebsites/minimal/
Stars: ✭ 180 (-5.26%)
Mutual labels:  website
Hexo Theme Geektutu
极速加载的Hexo主题,不引入第三方JS库
Stars: ✭ 187 (-1.58%)
Mutual labels:  website
Dvc.org
🔗 DVC website and documentation
Stars: ✭ 171 (-10%)
Mutual labels:  website
Pyflooder
A http flood python script that could stop a normal website in 10s
Stars: ✭ 174 (-8.42%)
Mutual labels:  website
Hapijs.com
The hapijs.com website
Stars: ✭ 181 (-4.74%)
Mutual labels:  website
Lantern
Mac app for website auditing and crawling
Stars: ✭ 167 (-12.11%)
Mutual labels:  website
Rikka
A simple image share system in go.
Stars: ✭ 189 (-0.53%)
Mutual labels:  website
Felipefialho.com
😺 My personal website
Stars: ✭ 177 (-6.84%)
Mutual labels:  website
Grav
Modern, Crazy Fast, Ridiculously Easy and Amazingly Powerful Flat-File CMS powered by PHP, Markdown, Twig, and Symfony
Stars: ✭ 13,067 (+6777.37%)
Mutual labels:  website
Women In Technology
A collection of resources for women in tech, consisting of - courses, learning guides, amazing sites and repos, blogs, programs and events. scholarships, etc.
Stars: ✭ 170 (-10.53%)
Mutual labels:  website
Fake Terminal Website
A fully customizable terminal-like website template
Stars: ✭ 174 (-8.42%)
Mutual labels:  website
Sharex Upload Server
AKA ShareS - Feature full & Stable ShareX and file server in node. Includes images, videos, code, text, markdown rendering, password protected uploads, logging via discord, administration through Discord, url shortening, and a full front end. Use standalone or via reverse proxy
Stars: ✭ 180 (-5.26%)
Mutual labels:  website
Confetti.js
A simple confetti animation for your website :)
Stars: ✭ 170 (-10.53%)
Mutual labels:  website
You Dont Need
People choose popular projects, often not because it applies to their problems
Stars: ✭ 2,601 (+1268.95%)
Mutual labels:  website
Pluxml
PluXml, Moteur de Blog et CMS à l'XML sans base de données
Stars: ✭ 168 (-11.58%)
Mutual labels:  website
Python Module
Write Nuxt.js applications using Python! [Experimental]
Stars: ✭ 181 (-4.74%)
Mutual labels:  website
Contentify
Contentify is an esports CMS based on the PHP framework Laravel
Stars: ✭ 189 (-0.53%)
Mutual labels:  website
Elefant
Elefant, the refreshingly simple PHP CMS and web framework.
Stars: ✭ 188 (-1.05%)
Mutual labels:  website
Phpfastcache
A high-performance backend cache system. It is intended for use in speeding up dynamic web applications by alleviating database load. Well implemented, it can drops the database load to almost nothing, yielding faster page load times for users, better resource utilization. It is simple yet powerful.
Stars: ✭ 2,171 (+1042.63%)
Mutual labels:  website

Trimmings logo

Trimmings

What happens to your web development process when you can focus on designing views and stop thinking about how to stitch them together? Trimmings by Postlight is a zero-configuration JavaScript library that adds a layer of smooth and fast in-page interaction to your web pages. All you have to do is add some hints to the HTML you already have.

Read more about it in our introduction to Trimmings.

This project follows in the footsteps of libraries like Turbolinks and Stimulus. It believes that the best place for your business and rendering logic is on the server, that you should send your users HTML, and that JavaScript is best suited for progressively-enhanced DOM manipulation. Trimmings is a set of patterns that allow you to add DOM manipulation to your app by adding data-trimmings-* attributes to your interactive elements. Less JavaScript in your project means less risk.

Once you've built your website and it's serving HTML that's presented the way you like it, you can start adding Trimmings hints that will enhance the way your interactions behave.

Perhaps you have a link to a detail page that you'd like to open in a modal. The standalone page probably has a header and footer that you wouldn't want to render in your modal. That's no problem. Just add an inline hint to your link:

<a data-trimmings-inline="from: .detail-container, to: .modal-container" href="/photos/2">
  View as a modal
</a>

If your visitor clicks that link, the page will be fetched in the background, the element with the detail-container class will be extracted from the result, and it will be inserted in an element with the modal-container class that's already on the page. You can write CSS that will make this show up however you like. Now you have a modal! That's all there is to it!

Installation

Just include trimmings.js in your <head>. That's it. Trimmings will automatically activate when your page loads—no need to think about lifecycles.

<script src="/trimmings.js"></script>

Usage

Trimmings features are enabled on specific elements by adding data-trimmings-* attributes. For more details on usage of each Trimmings feature, please consult the Trimmings handbook.

License

Licensed under either of

at your option.

Contributing

If you've found a bug or you'd like to propose a new feature, submit an issue and let's talk about it!

We expect that all contributors to Trimmings will abide by our Code of Conduct.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.


🔬 A Labs project from your friends at Postlight. Happy coding!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].