Mercurial Hosting > luan
comparison src/luan/modules/Html.luan @ 1291:2bbc6f132d61
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 02 Jan 2019 21:54:35 -0700 |
parents | bae2d0c2576c |
children | 9dca1e912658 |
comparison
equal
deleted
inserted
replaced
1290:fb802d8aba0b | 1291:2bbc6f132d61 |
---|---|
28 return URLEncoder.encode(s,"UTF-8") | 28 return URLEncoder.encode(s,"UTF-8") |
29 end | 29 end |
30 | 30 |
31 local function output_tag(tag) | 31 local function output_tag(tag) |
32 %><<%= tag.name %><% | 32 %><<%= tag.name %><% |
33 local attributes = tag.attributes | 33 for name, value in pairs(tag.attributes) do |
34 for name, value in pairs(attributes) do | |
35 %> <%= name %><% | 34 %> <%= name %><% |
36 if value ~= true then | 35 if value ~= true then |
37 %>=<%= quote(value) %><% | 36 %>=<%= quote(value) %><% |
38 end | 37 end |
39 end | 38 end |