An html simplyfier made in crystal lang made for newbies in html!
Html code:
<h1>Hello World!</h1>
Aga code:
puts Aga.h1o + "Hi" + Aga.h1c
add
dependencies:
aga:
github: nillythel0l/aga.cr
to your shard.yml file
require "aga"
# DOctype
puts Aga.start
# head open
puts Aga.heo
# style open
puts Aga.sto
puts "body {
background-color: #dddddd;
}"
# style close
puts Aga.stc
# head close
puts Aga.hec
# body open
puts Aga.boo
# h1 open and h1 close
puts Aga.h1o + "This is a header" + Aga.h1c
# p open and p close
puts Aga.po + "this is a paragraph" + Aga.pc
# body close
puts Aga.boc
# html close
puts Aga.end
finally use shards run and copy all code to your index.html
- Fork it (https://github.com/nillythel0l/aga/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
- NillyTheL0L - creator and maintainer