Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

fix template to use template key in component.json #24

Closed
wants to merge 1 commit into from

2 participants

@ianstormtaylor

No description provided.

@pirxpilot
Owner

I somehow missed this: but it does not remove template.js - so will merge #41 ;-)

@pirxpilot pirxpilot closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 11 additions and 9 deletions.
  1. +6 −6 Makefile
  2. +4 −2 component.json
  3. +1 −1  index.js
View
12 Makefile
@@ -1,14 +1,14 @@
-build: tip.css index.js template.js components
+build: tip.css index.js template.html components
@component build --dev
-template.js: template.html
- @component convert $<
-
-components:
+components: component.json
@component install --dev
clean:
rm -fr build components
-.PHONY: clean
+test: build
+ @open test/index.html
+
+.PHONY: clean test
View
6 component.json
@@ -21,11 +21,13 @@
"component/jquery": "*"
},
"scripts": [
- "index.js",
- "template.js"
+ "index.js"
],
"styles": [
"tip.css"
],
+ "templates": [
+ "template.html"
+ ],
"license": "MIT"
}
View
2  index.js
@@ -9,7 +9,7 @@ var query = require('query');
var domify = require('domify');
var classes = require('classes');
var css = require('css');
-var html = domify(require('./template'));
+var html = domify(require('./template.html'));
var offset = require('offset');
/**
Something went wrong with that request. Please try again.