► |  | Web Server: PLT HTTP Server

1 | Running the Web Server
2 | Writing Servlets
3 | Extending the Web Server
4 | Troubleshooting and Tips
5 | Acknowledgements
| Index

► | 2 | Writing Servlets

2.1 | Defining a Servlet
2.2 | APIs
2.3 | Common Contracts
2.4 | HTTP
2.5 | Web Interaction
2.6 | Stateless Web Interaction
2.7 | Web Cells
2.8 | File Boxes
2.9 | Stateless Web Parameters
2.10 | Formlets
2.11 | Templates
2.12 | Continuation Managers

▼ | 2.10 | Formlets

2.10.1 | Basic Formlet Usage
2.10.2 | Syntactic Shorthand
2.10.3 | Functional Usage
2.10.4 | Predefined Formlets
2.10.5 | Utilities

On this page:

formlet

Version: 4.1.4
top← prev up next →

##### 2.10.2`` Syntactic Shorthand

(require web-server/formlets/syntax)

Most users will want to use the syntactic shorthand for creating formlets.

(formlet rendering yields-expr)

Constructs a formlet with the specified rendering and the processing resulting in the yields-expr expression. The rendering form is a quasiquoted X-expression, with two special caveats:

,{=> formlet-expr name} embeds the formlet given by formlet-expr; the result of this processing this formlet is available in the yields-expr as name.

(#%# xexpr ...) renders an X-expression forest.

top← prev up next →