Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
How Xslate Works
1. How Xslate works The next generation's template engine YAPC::Asia Tokyo 2010, Day 2, 2010/10/16 10:10-10:50 Fuji, Goro (gfx) [email_address] http://github.com/gfx /
39. render() returns a rendered text; cannot output to filehandles directly, nor set calbacks (unlike TT)
40. See also Text::Xslate and Text::Xslate::Manual
41. Simplest example #!perl -w use 5.10.0; use strict; use Text::Xslate; my $tx = Text::Xslate-> new (); my %vars = ( lang => 'Xslate', ); # or $tx-> render ($file, vars); say $tx-> render_string (<<'EOT', vars); Hello, <: $lang :> world! EOT # -> Hello, Xslate world!
42. Xslate templates <ul> :# This is a template with the default syntax Kolon :# an one-line code starts from a colon ":" :# comments start from a hash symbol "#" :# an in-line code is surrounded by ”<:” and ":>" : for $list -> $item { <li> <: $item.name :> = <: $item.value :> </li> : } </ul> : include 'foo.tx' { bar => 'overrided' } :# See also ` perldoc Text::Xslate::Syntax::Kolon `
55. i.e. Persistent PSGI applications will take the best performance
56.
57. a type of computer security vulnerability typically found in web applications that enables malicious attackers to inject client-side script into web pages viewed by other users. (by Wikipedia)
97. " It is easy to use. It feels a lot like Recursive Descent, but with the need for less code and with significantly better performance. ", Douglas Crockford introduced there.
98. See also http://javascript.crockford.com/tdop/