Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

crazy-taxi

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crazy-taxi

A wrapper around mithril that utilizes mithril-node-render and webpack to render mithril templates server side along with their bundle so that tehy function seamlessly on the client.

  • 0.1.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-37.5%
Maintainers
1
Weekly downloads
 
Created
Source

Crazy Taxi

Universal Javascript easy and seamless


Crazy taxi is based on Mithril.js and uses hyperscript syntax (pure JS) for it's templates. Dead simple backend rendering.

var ct = require('crazy-taxi’)

var component = ct.compile('./component.js’)

var compiledHTMLString = component({name: ‘Joe’})

The rendering of each component is independent, and functions independently on the front end. Any attributes you pass into the compiled function are pre-rendered and hydrated automatically on the client!

`<head>
	<title>Craaaaazy Taaaaxi</title>
</head>

<body>
 	<h1>
		${  component_one({name: ‘Joe’})  }
		${  component_one({name: ‘Schmoe’})  }
	<h2>
	
	<p>
		${  component_two({title: ‘Programmer’})  }
	</p>

	<div>
		<p>Don't be afraid to write HUUUUGE components!</p>
		${  HUGE_COMPONENT_with_lots_of_children()  }
	</div>
</body>`

Keywords

FAQs

Package last updated on 12 Nov 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc