tkluck / haml.jl Goto Github PK
View Code? Open in Web Editor NEWHTML Abstract Markup Language for Julia. Inspired by Ruby's HAML.
Home Page: https://tkluck.github.io/HAML.jl/stable/
License: Other
HTML Abstract Markup Language for Julia. Inspired by Ruby's HAML.
Home Page: https://tkluck.github.io/HAML.jl/stable/
License: Other
This issue is used to trigger TagBot; feel free to unsubscribe.
If you haven't already, you should update your TagBot.yml
to include issue comment triggers.
Please see this post on Discourse for instructions and more details.
If you'd like for me to do this for you, comment TagBot fix
on this issue.
I'll open a PR within a few hours, please be patient!
We should copy Ruby-haml's behaviour.
As reported by @mlhetland in #6. They suggest attr=nothing
as a possible way of expressing this, but I'm not sure that's very intuitive as other empty values (e.g. []
) mean that the attribute should not be rendered at all. Suggestions welcome.
We should copy ruby-haml's behaviour where possible, and possibly make available some similar helper methods/macros.
Attribute escaping breaks e.g. charset declarations (at least in firefox), leading to [workarounds like this(https://github.com/tkluck/StatProfilerHTML.jl/blob/109ad6f/haml/index.hamljl#L4). This issue is also reported by @mlhetland in #6 . We could fix this by e.g. only escaping "
; maybe there's authoritative behaviour documented somewhere?
I may be missing some mechanism in the current library, but while trying to recreate some existing HTML5, I ran into the following roadblocks (for non-XML HTML5 syntax oddities):
content="width=device-width, initial-scale=1"
.<script defer …>
.<meta charset="utf-8">
.Now, it may be that the more XML-friendly 'width=device-width …'
, defer=""
and <meta …/>
are just fine HTML5-wise – so permitting stuff light this might just add unnecessary complication? ¯_(ツ)_/¯
(BTW, for the value-less attributes, I tested using defer=nothing
– a solution I've used myself in similar situations, but that seems to have broken the rendering completely, including for the following attributes.)
The keywords are available using interpolation syntax ($key
for when key=42
is passed). We should decide a syntax for iterating over the pairs of key => value
.
This mostly works in StatProfilerHTML now, but with workarounds and corner cases. We should collect and fix a few of those.
HTML5 allows certain tags as only declarations without />
nor a matching closing tag. One option is to have a whitelist of these tags, but maybe we can also have a syntax for it.
We currently do not support the following blocks:
elseif
function
begin
let
These would be interesting additions.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.