-
Notifications
You must be signed in to change notification settings - Fork 16
/
master.lyx
536 lines (372 loc) · 8.74 KB
/
master.lyx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
#LyX 1.6.10 created this file. For more info see http://www.lyx.org/
\lyxformat 345
\begin_document
\begin_header
\textclass book
\begin_preamble
\usepackage[notbib]{tocbibind}
\usepackage{breakurl}
\usepackage{textcomp}
\usepackage[htt]{hyphenat}
% redefine the \LyX macro for PDF bookmarks
\def\LyX{\texorpdfstring{%
L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
{LyX }}
% "define" Scala
\lstdefinelanguage{scala}{morekeywords={abstract,case,catch,class,def,do,else,extends,false,final,finally,for,forSome,if,implicit,import,lazy,match,new,null,object,override,package,private,protected,return,sealed,super,this,throw,trait,try,true,type,val,var,while,with,yield},
otherkeywords={=>,<-,<:,<\%,>:},
sensitive=true,
morecomment=[l]{//},
morecomment=[s]{/*}{*/},
morestring=[b]"}
%\font\ttfinconsolata Inconsolata
%\renewcommand{\ttdefault}{Inconsolata}
\definecolor{darkgreen}{rgb}{0,0.4,0}
% Default settings for code listings
\lstset{frame=tb,
language=scala,
aboveskip=3mm,
belowskip=3mm,
showstringspaces=false,
columns=flexible,
basicstyle={\small\ttfamily},
keywordstyle=\color{blue},
commentstyle=\color{darkgreen},
stringstyle=\color{red},
upquote=true,
showtabs=true,
tab=BADTAB,
numbers=left,
numberstyle=\tiny}
% Fix the List of Listings title
\renewcommand{\lstlistlistingname}{List of Listings}
% Be less rigorous with line breaking
\sloppy
\end_preamble
\use_default_options false
\language english
\inputencoding auto
\font_roman palatino
\font_sans default
\font_typewriter courier
\font_default_family default
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100
\graphics default
\paperfontsize 11
\spacing single
\use_hyperref true
\pdf_title "Exploring Lift"
\pdf_author "Derek Chen-Becker, Marius Danciu and Tyler Weir"
\pdf_subject "The Lift Web Framework"
\pdf_keywords "Lift Scala Web"
\pdf_bookmarks true
\pdf_bookmarksnumbered true
\pdf_bookmarksopen false
\pdf_bookmarksopenlevel 1
\pdf_breaklinks true
\pdf_pdfborder true
\pdf_colorlinks true
\pdf_backref false
\pdf_pdfusetitle false
\pdf_quoted_options "urlcolor=blue,linkcolor=blue"
\papersize letterpaper
\use_geometry true
\use_amsmath 1
\use_esint 1
\cite_engine basic
\use_bibtopic false
\paperorientation portrait
\paperwidth 6.139in
\paperheight 9.21in
\leftmargin 1in
\topmargin 1in
\rightmargin 1in
\bottommargin 1in
\secnumdepth 3
\tocdepth 2
\paragraph_separation indent
\defskip medskip
\quotes_language english
\papercolumns 1
\papersides 2
\paperpagestyle headings
\bullet 1 0 9 -1
\tracking_changes false
\output_changes false
\author ""
\author ""
\end_header
\begin_body
\begin_layout Standard
\begin_inset ERT
status open
\begin_layout Plain Layout
\backslash
frontmatter
\end_layout
\end_inset
\end_layout
\begin_layout Title
\size giant
Exploring Lift
\end_layout
\begin_layout Author
Lift 2.0 Edition
\end_layout
\begin_layout Author
Written by
\end_layout
\begin_layout Author
Derek Chen-Becker, Marius Danciu and Tyler Weir
\end_layout
\begin_layout Standard
\noindent
Copyright © 2008, 2009, 2010, 2011 by Derek Chen-Becker, Marius Danciu,
David Pollak, and Tyler Weir.
\begin_inset Newline newline
\end_inset
This work is licensed under the Creative Commons Attribution-No Derivative
Works 3.0 Unported License.
\end_layout
\begin_layout Standard
The home page for
\emph on
Exploring Lift
\emph default
is at
\begin_inset Flex URL
status open
\begin_layout Plain Layout
http://exploring.liftweb.net
\end_layout
\end_inset
.
Here you can find up-to-date copies of the text, as well as links to the
mailing list, issue tracking, and source code.
\end_layout
\begin_layout Standard
\begin_inset CommandInset toc
LatexCommand tableofcontents
\end_inset
\end_layout
\begin_layout Standard
\begin_inset FloatList figure
\end_inset
\end_layout
\begin_layout Standard
\begin_inset ERT
status open
\begin_layout Plain Layout
\backslash
lstlistoflistings
\end_layout
\end_inset
\end_layout
\begin_layout Chapter*
Dedication
\end_layout
\begin_layout Standard
Derek would like to thank his wife, Debbie, for her patience and support
while writing this book.
He would also like to thank his two young sons, Dylan and Dean, for keeping
things interesting and in perspective.
\begin_inset Newline newline
\end_inset
\end_layout
\begin_layout Standard
\noindent
Tyler would like to thank his wife, Laura, for encouraging him.
\begin_inset Newline newline
\end_inset
\end_layout
\begin_layout Standard
\noindent
Marius would like to thank his wife, Alina, for her patience during long
weekends and bearing with his monosyllabic answers while working on the
book.
\end_layout
\begin_layout Chapter*
Acknowledgements
\end_layout
\begin_layout Standard
This book would not have been possible without the Lift Developers and especiall
y David Pollak: without him, we wouldn't have this opportunity.
\end_layout
\begin_layout Standard
We would also like to thank the Lift community, as well as the following
individuals, for valuable feedback on the content of this book: Adam Cimarosti,
Malcolm Gorman, Doug Holton, Hunter Kelly, James Matlik, Larry Morroni,
Jorge Ortiz, Tim Perrett, Tim Pigden, Dennis Przytarski, Thomas Sant Ana,
Heiko Seeberger, and Eric Willigers.
\end_layout
\begin_layout Standard
A huge thanks to Charles Munat for editing this work, and to Tim Perrett
for helping with the REST API in Chapter 13.
\end_layout
\begin_layout Standard
\begin_inset ERT
status open
\begin_layout Plain Layout
\backslash
mainmatter
\end_layout
\end_inset
\end_layout
\begin_layout Part
The Basics
\end_layout
\begin_layout Standard
\begin_inset CommandInset include
LatexCommand include
filename "chap-welcome.lyx"
\end_inset
\end_layout
\begin_layout Standard
\begin_inset CommandInset include
LatexCommand include
filename "chap-demoapp.lyx"
\end_inset
\end_layout
\begin_layout Standard
\begin_inset CommandInset include
LatexCommand include
filename "chap-lift_architecture.lyx"
\end_inset
\end_layout
\begin_layout Standard
\begin_inset CommandInset include
LatexCommand include
filename "chap-template_xhtml.lyx"
\end_inset
\end_layout
\begin_layout Standard
\begin_inset CommandInset include
LatexCommand include
filename "chap-snippets.lyx"
\end_inset
\end_layout
\begin_layout Standard
\begin_inset CommandInset include
LatexCommand include
filename "chap-forms.lyx"
\end_inset
\end_layout
\begin_layout Standard
\begin_inset CommandInset include
LatexCommand include
filename "chap-sitemap.lyx"
\end_inset
\end_layout
\begin_layout Standard
\begin_inset CommandInset include
LatexCommand include
filename "chap-record_and_mapper.lyx"
\end_inset
\end_layout
\begin_layout Part
Advanced Topics
\end_layout
\begin_layout Standard
\begin_inset CommandInset include
LatexCommand include
filename "chap-advanced.lyx"
\end_inset
\end_layout
\begin_layout Standard
\begin_inset CommandInset include
LatexCommand include
filename "chap-js_commands.lyx"
\end_inset
\end_layout
\begin_layout Standard
\begin_inset CommandInset include
LatexCommand include
filename "chap-ajax_comet.lyx"
\end_inset
\end_layout
\begin_layout Standard
\begin_inset CommandInset include
LatexCommand include
filename "chap-JPA.lyx"
\end_inset
\end_layout
\begin_layout Standard
\begin_inset CommandInset include
LatexCommand include
filename "chap-thirdparty.lyx"
\end_inset
\end_layout
\begin_layout Standard
\begin_inset CommandInset include
LatexCommand include
filename "chap-widgets.lyx"
\end_inset
\end_layout
\begin_layout Standard
\begin_inset CommandInset include
LatexCommand include
filename "chap-web_services.lyx"
\end_inset
\end_layout
\begin_layout Part
Appendices
\end_layout
\begin_layout Standard
\start_of_appendix
\begin_inset CommandInset include
LatexCommand include
filename "chap-maven.lyx"
\end_inset
\begin_inset CommandInset include
LatexCommand include
filename "apdx-message-handling.lyx"
\end_inset
\end_layout
\begin_layout Standard
\begin_inset CommandInset include
LatexCommand include
filename "apdx-helpers.lyx"
\end_inset
\end_layout
\begin_layout Standard
\begin_inset CommandInset include
LatexCommand include
filename "apdx-i18n.lyx"
\end_inset
\end_layout
\begin_layout Standard
\begin_inset CommandInset include
LatexCommand include
filename "apdx-logging.lyx"
\end_inset
\end_layout
\begin_layout Standard
\begin_inset CommandInset include
LatexCommand include
filename "apdx-email.lyx"
\end_inset
\end_layout
\begin_layout Standard
\begin_inset CommandInset include
LatexCommand include
filename "apdx-code_listings.lyx"
\end_inset
\end_layout
\begin_layout Standard
\begin_inset CommandInset index_print
LatexCommand printindex
\end_inset
\end_layout
\begin_layout Standard
\begin_inset Note Note
status open
\begin_layout Plain Layout
Quick reference card goes here
\end_layout
\end_inset
\end_layout
\end_body
\end_document