-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plan #1
Comments
I've sent a PR. Do you need/want some help on this one ? |
Hello @pap, thank you for the PR, i'm very appreciate your help 👍 I mainly working on Weber development now, so I can add you to elixir-web for easy contribution |
@0xAX Don’t mention it, i’m glad to help out… On 31/01/2014, at 18:05, 0xAX notifications@github.com wrote:
|
Initial tokenizer is done, def test2 do
"""
%section
%h1
%div{ test => test, test2 => test2}
asd
%div
"""
end
def test3 do
"""
%ul
%li
%a{:href => "#devices-tab"}Devices
%li
%a{:href => "#options-tab"}System Options
%li
%a{:href => "#reports-tab"}Reports
%li
%a{:href => "#notes-tab"}Notes
"""
end
def test4 do
"""
%div{ class => main }
%div{class = int1 }
%div{class = int2, id = int22 }
"""
end Next point is - generator |
@0xAX take a look at this gist ... i used Exhaml to parse a haml file i use in one of my rails apps. https://gist.github.com/pap/74575d2f451be5e26a6f There are a few issues ... You based your work on the original haml code ? |
Thanks, will check it.
No i mean convery haml code to the internal elixir-terms based structure and only than to html |
@pap Hard to read. Can you give me please your plain HAML code from gist |
@0xAX about the html comments: =# this is haml commented You plan to output commented html right ? |
@pap,yes i know, now there is only |
@0xAX About comments: |
Thanks, i will look. Current parser is not counting identations, so we can't know where comments are finish, so i decided to leave it in structure. |
@0xAX what do you mean about not counting indentation? %A
%a1
%a2
a2.1
%B
%b1
b1.1
%b2 We should parse A into a structure, then B into another. Each level of indentation should be "nested" inside its "parent" This is good because we can have "partials" rendered for example: file main.html %p
%b
Bold Title
%i
Italic content
= render "test" File _test.html (partial) %h1
Title The result would be %p
%b
Bold Title
%i
Italic content
%h1
Title |
Hi @0xAX did you already took a look at this https://github.com/nurugger07/calliope ? |
1.0.0
The text was updated successfully, but these errors were encountered: