-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for only rendering html fragments
- Loading branch information
Showing
24 changed files
with
99 additions
and
14 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
repository/Seaside-Component.package/WAHeadlessComponent.class/README.md
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 @@ | ||
I am a component that is used to render a web page without a head and a body. |
3 changes: 3 additions & 0 deletions
3
repository/Seaside-Component.package/WAHeadlessComponent.class/instance/updateRoot..st
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,3 @@ | ||
updating | ||
updateRoot: anHtmlRoot | ||
self shouldNotImplement |
11 changes: 11 additions & 0 deletions
11
repository/Seaside-Component.package/WAHeadlessComponent.class/properties.json
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 @@ | ||
{ | ||
"commentStamp" : "Anonymous 7/6/2024 13:02", | ||
"super" : "WAComponent", | ||
"category" : "Seaside-Component-Base", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ ], | ||
"name" : "WAHeadlessComponent", | ||
"type" : "normal" | ||
} |
6 changes: 1 addition & 5 deletions
6
repository/Seaside-Component.package/monticello.meta/categories.st
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,5 +1 @@ | ||
SystemOrganization addCategory: #'Seaside-Component'! | ||
SystemOrganization addCategory: #'Seaside-Component-Base'! | ||
SystemOrganization addCategory: #'Seaside-Component-Exceptions'! | ||
SystemOrganization addCategory: #'Seaside-Component-Tasks'! | ||
SystemOrganization addCategory: #'Seaside-Component-Visitors'! | ||
self packageOrganizer ensurePackage: #'Seaside-Component' withTags: #(#Base #Exceptions #Tasks #Visitors)! |
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 @@ | ||
I am a stand in for an HTML root to render a web page without head or body. |
3 changes: 3 additions & 0 deletions
3
repository/Seaside-Core.package/WANilHtmlRoot.class/instance/closeOn..st
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,3 @@ | ||
writing | ||
closeOn: aDocument | ||
"intentionally empty" |
3 changes: 3 additions & 0 deletions
3
repository/Seaside-Core.package/WANilHtmlRoot.class/instance/openOn..st
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,3 @@ | ||
writing | ||
openOn: aDocument | ||
"intentionally empty" |
11 changes: 11 additions & 0 deletions
11
repository/Seaside-Core.package/WANilHtmlRoot.class/properties.json
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 @@ | ||
{ | ||
"commentStamp" : "Anonymous 7/6/2024 13:07", | ||
"super" : "WAObject", | ||
"category" : "Seaside-Core-Document", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ ], | ||
"name" : "WANilHtmlRoot", | ||
"type" : "normal" | ||
} |
1 change: 1 addition & 0 deletions
1
...ry/Seaside-RenderLoop.package/WAFragmentRenderPhaseContinuation.class/README.md
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 @@ | ||
I am a render phase continuation that only renders a fragment of a web page, without a head or body. |
3 changes: 3 additions & 0 deletions
3
...op.package/WAFragmentRenderPhaseContinuation.class/instance/createHtmlRootWithContext..st
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,3 @@ | ||
private | ||
createHtmlRootWithContext: aRenderContext | ||
^ WANilHtmlRoot new |
3 changes: 3 additions & 0 deletions
3
...easide-RenderLoop.package/WAFragmentRenderPhaseContinuation.class/instance/updateRoot..st
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,3 @@ | ||
updating | ||
updateRoot: anHtmlRoot | ||
"intentionally empty" |
11 changes: 11 additions & 0 deletions
11
...sitory/Seaside-RenderLoop.package/WAFragmentRenderPhaseContinuation.class/properties.json
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 @@ | ||
{ | ||
"commentStamp" : "Anonymous 7/6/2024 13:05", | ||
"super" : "WARenderPhaseContinuation", | ||
"category" : "Seaside-RenderLoop-Continuations", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ ], | ||
"name" : "WAFragmentRenderPhaseContinuation", | ||
"type" : "normal" | ||
} |
5 changes: 1 addition & 4 deletions
5
repository/Seaside-RenderLoop.package/monticello.meta/categories.st
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 @@ | ||
SystemOrganization addCategory: #'Seaside-RenderLoop'! | ||
SystemOrganization addCategory: #'Seaside-RenderLoop-Base'! | ||
SystemOrganization addCategory: #'Seaside-RenderLoop-Continuations'! | ||
SystemOrganization addCategory: #'Seaside-RenderLoop-Errors'! | ||
self packageOrganizer ensurePackage: #'Seaside-RenderLoop' withTags: #(#Base #Continuations #Errors)! |
2 changes: 1 addition & 1 deletion
2
...tory/Seaside-Tests-Session.package/WAApplicationTest.class/instance/testNotImplemented.st
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
2 changes: 1 addition & 1 deletion
2
...ory/Seaside-Tests-Session.package/WAApplicationTest.class/instance/testPathConsumption.st
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,4 @@ | ||
tests | ||
as yet unclassified | ||
testPathConsumption | ||
| context request | | ||
request := self requestWithMethod: 'GET'. | ||
|
2 changes: 1 addition & 1 deletion
2
...Seaside-Tests-Session.package/WAApplicationTest.class/instance/testPreFetchIsForbidden.st
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,4 @@ | ||
tests | ||
as yet unclassified | ||
testPreFetchIsForbidden | ||
| context request | | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
repository/Seaside-Tests-Session.package/WAApplicationTest.class/instance/testUrlFor.st
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
Empty file.
3 changes: 3 additions & 0 deletions
3
...aside-Tests-Session.package/WAFragmentRenderingTest.class/class/shouldInheritSelectors.st
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,3 @@ | ||
testing | ||
shouldInheritSelectors | ||
^ false |
10 changes: 10 additions & 0 deletions
10
...sitory/Seaside-Tests-Session.package/WAFragmentRenderingTest.class/instance/newHandler.st
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,10 @@ | ||
private | ||
newHandler | ||
| application | | ||
application := WAApplication new. | ||
application configuration | ||
addParent: WARenderLoopConfiguration instance. | ||
^ application | ||
rootClass: WACounter; | ||
preferenceAt: #renderPhaseContinuationClass put: WAFragmentRenderPhaseContinuation; | ||
yourself |
5 changes: 5 additions & 0 deletions
5
...easide-Tests-Session.package/WAFragmentRenderingTest.class/instance/requestWithMethod..st
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,5 @@ | ||
running | ||
requestWithMethod: aString | ||
^ WARequest | ||
method: aString | ||
uri: '/app/oneo' |
12 changes: 12 additions & 0 deletions
12
...ory/Seaside-Tests-Session.package/WAFragmentRenderingTest.class/instance/testRendering.st
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,12 @@ | ||
tests | ||
testRendering | ||
| context request responseContents | | ||
request := self requestWithMethod: 'GET'. | ||
context := WARequestContext request: request response: WABufferedResponse new. | ||
[ handler handle: context ] | ||
on: WAResponseNotification | ||
do: [ :notification | ]. | ||
self assert: context response status = 200. | ||
responseContents := context response contents. | ||
self assert: (responseContents beginsWith: '<h1>'). | ||
self assert: (responseContents endsWith: '</a>') |
11 changes: 11 additions & 0 deletions
11
repository/Seaside-Tests-Session.package/WAFragmentRenderingTest.class/properties.json
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 @@ | ||
{ | ||
"commentStamp" : "", | ||
"super" : "WARequestHandlerTest", | ||
"category" : "Seaside-Tests-Session", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ ], | ||
"name" : "WAFragmentRenderingTest", | ||
"type" : "normal" | ||
} |
2 changes: 1 addition & 1 deletion
2
repository/Seaside-Tests-Session.package/monticello.meta/categories.st
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 +1 @@ | ||
SystemOrganization addCategory: #'Seaside-Tests-Session'! | ||
self packageOrganizer ensurePackage: #'Seaside-Tests-Session' withTags: #()! |