public
Description: Markdown sources for http://hobocentral.net
Homepage: http://hobocentral.net
Clone URL: git://github.com/tablatom/hobocentral.git
tweaks
tablatom (author)
Fri Sep 26 04:01:32 -0700 2008
commit  5a434374a86b2d079341da92776b9f0395f02b90
tree    0463b273562021b3071a77abe2eecd918460df84
parent  0425b12a7ca93198eb4de367aaf1f8466057a28f
...
330
331
332
333
 
334
335
336
...
347
348
349
350
 
351
352
353
...
330
331
332
 
333
334
335
336
...
347
348
349
 
350
351
352
353
0
@@ -330,7 +330,7 @@ The `with` attribute is a special DRYML attribute that sets the context to be th
0
 
0
 Note that we could have used `&this.title` instead of `&@blog_post.title`.
0
 
0
-The `field` attribute makes things more compact by taking advantage of a common pattern. When changing the context, we very often want to change to some attribute of the current context. `field="x"` is a shorthand for `with="&this.x"` (actually it's not quite the same, using the `field` version also sets `this_parent` and `this_field`, whereas `with` does not. This is discussed later in more detail).
0
+The `field` attribute makes things more concise by taking advantage of a common pattern. When changing the context, we very often want to change to some attribute of the current context. `field="x"` is a shorthand for `with="&this.x"` (actually it's not quite the same, using the `field` version also sets `this_parent` and `this_field`, whereas `with` does not. This is discussed later in more detail).
0
 
0
 The same template again, this time using `field`:
0
 
0
@@ -347,7 +347,7 @@ The same template again, this time using `field`:
0
     </page>
0
 {.dryml}
0
 
0
-If you compare that example to the first one, you should notice that the `:` syntax is just a shorthand for the `field` attribute. i.e. `<view field="name">` and `<view:name>` are equivalent.
0
+If you compare that example to the first one, you should notice that the `:` syntax is just a shorthand for the `field` attribute. i.e. `<view field="name">` and `<view:name>` are equivalent.
0
 
0
  - merging attributes
0
 

Comments

    No one has commented yet.