-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
43cb57e
commit dcbd6fb
Showing
7 changed files
with
37 additions
and
8 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// src/utils/template-tag.js | ||
var html = (s, ...v) => { | ||
return s.reduce((acc, str, i) => acc + str + (v[i] || ""), ""); | ||
}; | ||
var css = (s, ...v) => { | ||
return s.reduce((acc, str, i) => acc + str + (v[i] || ""), ""); | ||
}; | ||
export { | ||
css, | ||
html | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import scopedStyle from '../utils/scoped-style.js'; | ||
|
||
/* main entry point */ | ||
class piq extends HTMLElement { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
const html = (s, ...v) => { | ||
return s.reduce((acc, str, i) => acc + str + (v[i] || ''), ''); | ||
}; | ||
|
||
const css = (s, ...v) => { | ||
return s.reduce((acc, str, i) => acc + str + (v[i] || ''), ''); | ||
}; | ||
|
||
export { | ||
html, | ||
css | ||
} | ||
|