Socket
Socket
Sign inDemoInstall

com.eiryu:templa

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

com.eiryu:templa

A New HTML Template Engine


Version published
Maintainers
1
Source

Templa

作る理由

HTMLを楽に書くためのもの。nodeのJadeが似てる。 出来る限りタイプ数を少なくする。SHIFTキーも押したくない。

  • 正しいHTMLであるかの検証はしない
  • インデントが意味を持つ
  • 一番最初に出現した要素がタグになる
  • 属性は「名前:値」で記載
  • テキストノードは「:値」というように記載。名前部分は空
  • 値が空白を含む場合はシングルクオートで囲む
  • 属性の区切りは1つ以上の半角スペース

入力

html
	head
		meta charset:utf8
		title :'hello world'
	body
		h1 :hello

出力

<html>
	<head>
		<meta charset="utf8">
		<title>hello world</title>
	</head>
	<body>
		<h1>hello</h1>
	</body>
</html>

LICENSE

MIT

FAQs

Package last updated on 17 Jul 2015

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