Code Monkey home page Code Monkey logo

puzzler's Introduction

Puzzler

License Apache 2

Puzzler is a layout service that puzzles together the pieces of a layout from different services.

Modern day websites are a creation by multiple teams. However, many of these modern websites are still build as monolith. Ruby on Rails is one of the frameworks that weaves together one language and one framework to build them. But, there are many more languages than Ruby and more frameworks. Microserivces are build on the idea that you have simpler, more specific components.

Fragement(s)

A fragment is polymorphic. On the server it is parsed and evaluate to a puzzle. In the browser it is a web component that can receives streamed data.

Server

  • src The source to fetch for replacement in the DOM
  • method can be of GET (default) or POST.
  • id is an optional unique identifier (optional)
  • timeout timeout of a fragement to receive in milliseconds (default is 300)
  • deferred is deferring the fetch to the browser
  • fallback is deferring the fetch to the browser if failed (default)

Fragments can use the HTTP Link entity field to provide rel=styleheet or rel=script to a puzzle.

Frontend

This is when the fragment is deferred to the browser

  • src The source to fetch for replacement in the DOM

Example

<html>
<head>
    <script type="fragment" src="http://localhost:3000/assets"></script>
</head>
<body>
    <h1>Example</h1>
    <fragment src="http://localhost:3000/fragment1.html"></fragment>
</body>
</html>

License

Apache 2.0

puzzler's People

Contributors

katallaxie avatar

Stargazers

Eduardo Rabelo avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.