Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

awscms

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

awscms

Awscms is a [Connect](https://github.com/senchalabs/connect) middleware that serves [Handlebars](https://github.com/wycats/handlebars.js) templates from an Amazon S3 bucket.

latest
Source
npmnpm
Version
0.2.6
Version published
Maintainers
1
Created
Source

Awscms

Say it with me: awh-s'ms

Awscms is a Connect middleware that serves Handlebars templates from an Amazon S3 bucket.

Made by Matt Brennan at import•io.

##Installing npm install awscms

##Using

The setup

app.use.apply(app, Awscms.middleware({
		prefix: '/awscms',
		access-key-id: "",
		secret-access-key: "",
		bucket: "bucket-name"
}))

page.htm

{{#extends "base"}}
{{> header}}
<ol>
	{{#each list}}
	<li>{{.}}
	{{/each}}
</ol>
{{/extends}}

page.json

{
	"list": [
		"Is amazing",
		"Will save your life"
	]
}

header.part

<h1>Awscms</h1>

base.htm

<!doctype html>

{{{body}}}

The request

GET /awscms/page

The response

Well, what do you think?

Licence

Awscms is released under the MIT licence. ©2013 import•io

FAQs

Package last updated on 21 Mar 2013

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