|
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
As a matter of fact, it's based on DOM classes and ids. For example, you can fill a paragraph with content like this in your code: (html/deftemplate index "tutorial/template1.html" [ctxt] [:p#message] (html/content (:message ctxt))) deftemplate is a macro that creates a template called "index". It creates a function that is applied when the matching route is called (this is defined in conjunction with another library, Ring, which is inspired by Ruby's Sinatra). It loads the file "tutorial/template1.html", and matches each "p" tag with the id "message". Finally, a function is applied that fills the paragraph with the content from the ctxt parameter with the key :message (the colon marks a symbol, just like Ruby). I have copied this from a tutorial. If you want to know more, check it out: On 29.09.2011, at 19:00, Chuck Hill wrote:
|
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
| References: | |
| >Re: Finding WO people for startups (cult of the dead) (From: email@hidden) | |
| >Re: Finding WO people for startups (cult of the dead) (From: Chuck Hill <email@hidden>) | |
| >Re: Finding WO people for startups (cult of the dead) (From: email@hidden) | |
| >Re: Finding WO people for startups (cult of the dead) (From: Chuck Hill <email@hidden>) | |
| >Re: Finding WO people for startups (cult of the dead) (From: Simon <email@hidden>) | |
| >Re: Finding WO people for startups (cult of the dead) (From: Marius Soutier <email@hidden>) | |
| >Re: Finding WO people for startups (cult of the dead) (From: Chuck Hill <email@hidden>) |
| Home | Archives | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2011 Apple Inc. All rights reserved.