diff --git a/README.md b/README.md index 7aebe61..c089561 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,6 @@ - Static files served from `pub/` - Page-based routing to `.tsx` files that export a `JSX` function in `./src/pages` - Transpile `.ts` files in `src/client/blah.ts` via `website.com/client/blah.ts` -- Helpers like `css` and `js` template tags. - Default, simple HTML5 layout with working frontend transpilation/bundling, or supply your own. - Optional CSS reset. - Optional pico.css. @@ -115,25 +114,6 @@ CSS can be accessed via `/css/main.css`: ``` -Or written inline using the `css` template tag: - -```tsx -import { css } from "hype" - -export default () => ( -
- {css` - * { - color: red; - } - `} -

Hello

-
-) -``` - -Install the `vscode-styled-components` VSCode extension to highlight inline `css` tags! - ### css reset To use reset.css with the default layout, create `Hype` with `{ reset: true }`: @@ -165,27 +145,6 @@ import { initAbout } from "./about" import utils from "./shared/utils" ``` -Or written inline as transpiled typescript using the `js` template tag: - -```tsx -import { js } from "hype" - -export default () => ( -
- {js` - window.onload = () => alert(welcomeMsg(Date.now())) - - function welcomeMsg(time: number): string { - return "Welcome to my website!" - } - `} -

Hello!

-
-) -``` - -Install the `vscode-styled-components` VSCode extension to highlight inline `js` tags! - ### pub Anything in `pub/` is served as-is. Simple stuff. @@ -249,10 +208,8 @@ curl -N http://localhost:3000/api/time `hype` includes helpful utils for your webapp: - `capitalize(str: string): string` - Capitalizes a word -- `css` Template Tag - Lets you inline CSS in your TSX. Returns a `