-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from glimmerjs/rehydrating-builder
Introduce Builders
- Loading branch information
Showing
6 changed files
with
42 additions
and
3 deletions.
There are no files selected for viewing
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
8 changes: 8 additions & 0 deletions
8
packages/@glimmer/application/src/builders/rehydrating-builder.ts
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,8 @@ | ||
import DOMBuilder from './dom-builder'; | ||
import { rehydrationBuilder, Environment, ElementBuilder } from '@glimmer/runtime'; | ||
|
||
export default class RehydratingBuilder extends DOMBuilder { | ||
getBuilder(env: Environment): ElementBuilder { | ||
return rehydrationBuilder(env, this.cursor); | ||
} | ||
} |
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,2 @@ | ||
export { default as StringBuilder } from './src/string-builder'; | ||
export { default as SerializingBuilder } from './src/serializing-builder'; |
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,18 @@ | ||
{ | ||
"name": "@glimmer/ssr", | ||
"version": "0.9.0-alpha.1", | ||
"description": "Server-side rendering for Glimmer Applications", | ||
"repository": "https://github.com/glimmerjs/glimmer.js", | ||
"license": "MIT", | ||
"files": [ | ||
"dist" | ||
], | ||
"main": "dist/commonjs/es5/index.js", | ||
"module": "dist/modules/es2017/index.js", | ||
"types": "dist/types/index.d.ts", | ||
"dependencies": { | ||
"@glimmer/application": "^0.9.0-alpha.1", | ||
"@glimmer/node": "^0.29.9", | ||
"@glimmer/runtime": "^0.29.9" | ||
} | ||
} |
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,9 @@ | ||
import { DOMBuilder } from '@glimmer/application'; | ||
import { Environment, ElementBuilder } from '@glimmer/runtime'; | ||
import { serializeBuilder } from '@glimmer/node'; | ||
|
||
export default class SerializingBuilder extends DOMBuilder { | ||
getBuilder(env: Environment): ElementBuilder { | ||
return serializeBuilder(env, this.cursor); | ||
} | ||
} |
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,2 @@ | ||
import { DOMBuilder } from '@glimmer/application'; | ||
export default class StringBuilder extends DOMBuilder {} |