Ah, you are talking about the How to Design Programs template. The
template is code with holes in it that you fill in later. The template
matches the structure of your data. I recommend reviewing the first
part of the book on templates to solidify the idea and talk to your
teacher: http://www.ccs.neu.edu/home/matthias/HtDP2e/part_one.html

Jay

On Fri, Oct 16, 2015 at 8:06 AM, Mu Cao <david.cao2...@gmail.com> wrote:
> Thanks for the reply, I am trying to define structure, teacher required
> template, my understanding the template should be in the comment, but the
> course slides do not show the template in the comment, that is what I feel
> confuse. Thanks, David
>
> On Oct 16, 2015 6:25 AM, "Jay McCarthy" <jay.mccar...@gmail.com> wrote:
>>
>> If you are referring to include-template from web-server/templates,
>> that is incorrect. The include-template function just embeds a file
>> written in the @-syntax starting from literal mode. So its result is
>> normally a string, but the file can use the @ syntax to escape back
>> into the parent language and write any program.
>>
>> The documentation contains examples of programs inside the template:
>>
>>
>> http://docs.racket-lang.org/web-server/templates.html?q=include-template#%28form._%28%28lib._web-server%2Ftemplates..rkt%29._include-template%29%29
>>
>> What exactly are you trying to do and what is the problem?
>>
>> Jay
>>
>> On Thu, Oct 15, 2015 at 11:28 PM,  <david.cao2...@gmail.com> wrote:
>> > I am little confuse about template, my understanding is that template
>> > can only put into comment, template is not real code, am i right?
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Racket Users" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> > an email to racket-users+unsubscr...@googlegroups.com.
>> > For more options, visit https://groups.google.com/d/optout.
>>
>>
>>
>> --
>> Jay McCarthy
>> Associate Professor
>> PLT @ CS @ UMass Lowell
>> http://jeapostrophe.github.io
>>
>>            "Wherefore, be not weary in well-doing,
>>       for ye are laying the foundation of a great work.
>> And out of small things proceedeth that which is great."
>>                           - D&C 64:33



-- 
Jay McCarthy
Associate Professor
PLT @ CS @ UMass Lowell
http://jeapostrophe.github.io

           "Wherefore, be not weary in well-doing,
      for ye are laying the foundation of a great work.
And out of small things proceedeth that which is great."
                          - D&C 64:33

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to