Skip to content

Commit b03a619

Browse files
committed
improve comments in index
1 parent fc3c3f0 commit b03a619

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

index.sql

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,16 @@ select 'shell' as component,
77
'Welcome to SQLPage' as description;
88
-- Making a web page with SQLPage works by using a set of predefined "components"
99
-- and filling them with contents from the results of your SQL queries
10-
select 'hero' as component,
11-
'It works !' as title,
12-
-- The text component has a property called "title" that we use to set the title of our block of text
10+
select 'hero' as component, -- We select a component. The documentation for each component can be found on https://sql.ophir.dev/documentation.sql
11+
'It works !' as title, -- 'title' is top-level parameter of the 'hero' component
1312
'If you can see this, then SQLPage is running correctly on your server. Congratulations! ' as description;
1413
-- Properties can be textual, numeric, or booleans
1514

1615
-- Let's start with the text component
1716
SELECT 'text' as component, -- We can switch to another component at any time just with a select statement.
1817
'Get started' as title;
1918
-- We are now inside the text component. Each row that will be returned by our SELECT queries will be a span of text
20-
-- The text component has a property called "contents" that we use to set the contents of our block of text
19+
-- The text component has a property called "contents" that can be that we use to set the contents of our block of text
2120
-- and a property called "center" that we use to center the text
2221
SELECT 'In order to get started ' as contents;
2322
select 'visit SQLPage''s website' as contents,

0 commit comments

Comments
 (0)