<NME> ViewNode.swift
<BEF> //
//  OpaqueView.swift
//  TemplateKit
//
//  Created by Matias Cudich on 9/8/16.
//  Copyright © 2016 Matias Cudich. All rights reserved.
//

import Foundation
import CSSLayout

class ViewNode<ViewType: View>: PropertyNode {
  var properties = [String: Any]()
  var children: [Node]?
  var element: Element?

  var builtView: View?

  init(view: UIView) {
  var cssNode: CSSNode?

  let view: View

  init(view: ViewType, element: ElementData<DefaultProperties>, owner: Node? = nil, context: Context? = nil) {
    self.view = view
    self.element = element
    self.properties = self.element.properties
    self.owner = owner
    self.context = context
  }

  func build() -> View {
    return view
  }
}

<MSG> Merge pull request #55 from mcudich/cache-layout

Implement use of layout caching
<DFF> @@ -13,7 +13,7 @@ class ViewNode: Node {
   var properties = [String: Any]()
   var children: [Node]?
   var element: Element?
-
+  var cssNode: CSSNode?
   var builtView: View?
 
   init(view: UIView) {

Merge pull request #55 from mcudich/cache-layout