I was trying to replace an
iframe tag with a
webview tag and I wasn’t able to simply switch them in my space-pen view. The code below fails with the
@webview as an undefined function. Is there a syntax for using a new tag with space-pen?
@content: -> @div class:'browser-page', tabindex:-1, => @webview outlet: 'iframe' class: 'iframe'
I love the space-pen simple syntax. I absolutely don’t want to use a separate file as a template. I guess I’ll have to use straight html with jQuery.
Edit: I found the answer. It was a case of not RTFM. See https://github.com/atom/space-pen.