<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -114,7 +114,5 @@ end
 
 --- Strip leading and trailing space from a string.
 function strip(str)
-  -- assign to local because gsub returns two values and we only want one.
-  local s = str:gsub(&quot;^[%s]*&quot;, &quot;&quot;):gsub(&quot;[%s]*$&quot;, &quot;&quot;)
-  return s
+  return (str:gsub(&quot;^[%s]*&quot;, &quot;&quot;):gsub(&quot;[%s]*$&quot;, &quot;&quot;))
 end</diff>
      <filename>haml/ext.lua</filename>
    </modified>
    <modified>
      <diff>@@ -63,9 +63,7 @@ function render(precompiled, options, locals)
   local buffer = {}
   local options = ext.merge_tables(options, haml.default_options)
   local env = {}
-   for k, v in pairs(_G) do
-     env[k] = v
-   end
+  setmetatable(env, {__index = _G})
   -- override the default print function to add lines to a buffer
   env.print = function(str)
     table.insert(buffer, str)</diff>
      <filename>haml/renderer.lua</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>1c22be95a4778e9769b20ba57d3e7e9c6d0b1c22</id>
    </parent>
  </parents>
  <author>
    <name>Norman Clarke</name>
    <email>norman@njclarke.com</email>
  </author>
  <url>http://github.com/norman/lua-haml/commit/800f091c8de212fd2884637680f89f12a86e907c</url>
  <id>800f091c8de212fd2884637680f89f12a86e907c</id>
  <committed-date>2009-11-07T09:02:29-08:00</committed-date>
  <authored-date>2009-11-07T09:02:29-08:00</authored-date>
  <message>Minor updates to improve Lua idiomacity.</message>
  <tree>2cdc9ece6f43f4d9ff199e3115f0dbdf3ef184f5</tree>
  <committer>
    <name>Norman Clarke</name>
    <email>norman@njclarke.com</email>
  </committer>
</commit>
