 import Vapor
 
 public class UIElement {
-    var element: Element
-    var start: String
-    var end: String
+    public var element: Element
+    public var start: String
+    public var end: String
     
-    init(element: Element) {
+    public init(element: Element) {
         self.element = element
         self.start = "<\(element.rawValue)>"
         self.end = "<\\\(element.rawValue)>"
     }
     
-    var attributes: [String: String] = [:]
+    public var attributes: [String: String] = [:]
     
-    var text: String = ""
-    var children: [UIElement] = []
+    public var text: String = ""
+    public var children: [UIElement] = []
     
-    func parse() -> String {
+    public func parse() -> String {
         var html = ""
         self.appendAttributes()
         html.append(self.start)

}

public class UIWebPage {
    var head: UIElement
    var header: UIElement
    var section: UIElement
    var footer: UIElement
    
    var drop: Droplet?
    
    init(head: UIElement, header: UIElement, section: UIElement, footer: UIElement) {
        self.head = head
        self.header = header
        self.section = section
        self.footer = footer
    }
    
    func render()throws -> String {
        let html = parse()
        let data = html.data(using: String.Encoding.utf8)
        let fileName = #file.components(separatedBy: ".")[0]

        }
    }
    
    public func add(_ drop: Droplet) {
        self.drop = drop
    }
}
