vritant24 / cleave-html

A modular way to write static webpages
MIT License
1 stars 0 forks source link

[WIP] added document tree object #16

Closed vritant24 closed 6 years ago

vritant24 commented 6 years ago

This is how I was thinking the document would be represented after being read.

{
  imports: {name="",  path=""}
  cleave_nodes: [],
  html: {}
}

imports will be a sort of hash for reference to see if the cleave node has been imported. cleave_nodes will be a list that point to the cleave nodes in the tree. html will be the document as the AST Tree.

Do you think this representation is good? could anything be improved?

claytn commented 6 years ago

This is a bit tough to discuss over a messenger. I'll be back on campus on the 6th so would you be available to meet and go over the entire design of this?

The way this needs to be structured completely depends on how we are planning to go about the tree building in the first place and I think we may have different ideas about how that will work.

vritant24 commented 6 years ago

Yeah I'm on campus all the time so I'm down to meet on the 6th or 7th anytime