SOURCE CODE: UizeSite.Templates.ListingsPage

VIEW REFERENCE

<%@
  required ('Uize.Str.Lines');
  input ({
    title:'string',
    displayTitle:'string',
    pathToRoot:'string',
    imageFolder:'string',
    metaDescription:'string',
    preamble:'string',
    listings:'array'
  });
%>


  <% .title %> | UIZE JavaScript Framework
  
  
  
  
  
  
  






UIZE JavaScript Framework

<%= input.displayTitle || input.title %>

<% .preamble %>
<% for ( var listingNo = -1, listings = input.listings, listingsLength = listings.length, imageFolder = input.imageFolder || input.title.toLowerCase () ; ++listingNo < listingsLength; ) { var listing = listings [listingNo], listingName = listing.fullName, listingSubTitle = listing.subTitle || '', listingNamePlusSubTitle = listingName + (listingSubTitle && ' - ') + listingSubTitle, moreInfoLink = listing.link ; %>
<%= listingNamePlusSubTitle %>
<% if (moreInfoLink) { %><% } %><%= listingNamePlusSubTitle -> tagAttributeValue %><% if (moreInfoLink) { %><% } %> <% for ( var lineNo = -1, lines = Uize.Str.Lines.split (listing.text), linesLength = lines.length; ++lineNo < linesLength; ) { %>

<%= lines [lineNo] %>

<% } %> <% if (moreInfoLink) { %>

more info at... <%= moreInfoLink %>

<% } %>
<% } %>