- expression-oriented programming one of the great advances of FP
- expressions plug together like legos, making more malleable programming experience in-the-small
Write in an expression-oriented style, scoping variables as locally as possible:
<div class="col-xs-12"> | |
<hr> | |
<h1>Digital Downloads Available On Your Account</h1> | |
<div id="ebook-list"> | |
<div class="row"> | |
[%site_value id:'footer_javascript'%] | |
[%thumb_list type:'orders' %] | |
[%param *header%] | |
[%/param%] | |
[%param *body%] |
<ul> | |
[%content_menu content_type:'category' limit:''%] | |
[%param header%] | |
<li>Categories | |
<ul> | |
[%/param%] | |
[%param *level_1%] | |
<li><a href="[@url@]">[@name@]</a> | |
[%if [@next_level@]%] | |
<ul> |