Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
jinja2 templates for Curl
06-14-2013, 08:33 AM,
#1
jinja2 templates for Curl
Here is the Curl applet output by a jinja2 template on my test server:
----------------
Curl test page

We are displaying Unicode utf-8 as Unicode brace-tagged content.

This text is emitted by a Unicode jinja2 template using Japanese quotation characters as the markup delimiters within the utf-8 text source.

No Curl braces or parentheses occur in the markup delimiters.

---------------

"brace-tagged" in this case means that the delimiters are Unicode brace characters OTHER THAN our '{' and '}' Curl brace characters - and no parentheses are used in the tag delimiters with the template.

Most web server templating is aimed at HTML or XHTML, but Jinja2 templates for Python web servers are quite agnostic. All templates are themselves utf-8.

In my experiment I have used \u300c, 300D, 3014, 3015 and 3008 with \u3009 - although other possibilities are readily available using other quotation devices.

Perhaps what is not immediately obvious is that the template ITSELF can be tested as to whether - barring substitutions - one has a valid Curl applet !

In such a test run, that Curl applet appears in the browser with items such as

「tag 」

which would be populated by the template.

My next task is the generate THIS template from lighter markup such that a test run of a page of poetry would appear with tags such as

「verse01 」

「verse02 」

「verse03 」


within their respective Curl visual, graphic or markup macros such as

{poem
{verse
「verse01 」
}
{verse
「verse02 」
}
{verse
「verse03 」
}
}


This is just one step-closer to server-side Curl for my poetry markup projects !

Robert Shiplett, Curlr
Fredericton NB

Canada
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
Brick Curl macros introduction (part 1) RobertShiplett 4 6,969 04-25-2015, 05:28 PM
Last Post: glennmcgrath
  server-side Curl issue : TocDocument RobertShiplett 3 5,674 02-09-2015, 02:11 PM
Last Post: Sumeraxe
  Curl with HTML widget + CintaNotes RobertShiplett 0 4,430 09-08-2014, 07:42 AM
Last Post: RobertShiplett
  Curl for the new Kodansh kanji books RobertShiplett 0 3,022 09-07-2014, 08:51 PM
Last Post: RobertShiplett
  Curl on Facebook - another page RobertShiplett 0 3,725 02-01-2014, 02:29 AM
Last Post: RobertShiplett
  Curl for CoffeeScript folks RobertShiplett 0 4,748 06-29-2013, 02:52 AM
Last Post: RobertShiplett
  Curl JavaScript bytecodes RobertShiplett 0 4,927 06-19-2013, 10:33 PM
Last Post: RobertShiplett
  Curl and QNX RobertShiplett 0 4,918 04-24-2013, 11:38 PM
Last Post: RobertShiplett
  WikizPad Curl personal wiki RobertShiplett 0 4,104 03-11-2013, 01:09 AM
Last Post: RobertShiplett
  Curl as flashcard markup RobertShiplett 1 4,804 03-09-2013, 01:58 AM
Last Post: RobertShiplett
Forum Jump:


Users browsing this thread:
1 Guest(s)