Using Google Apps Script, how can I accomplish the same as "Insert" -> "Document" within the Google Sites Editor?
Using GAS, I can obtain the URL and/or the ID of a document, but I cannot create the equivalent of an embedded Google Document within a Google Site Page.
I have been able to insert an <iframe>, but that assumes that the document has been published as a web-document.
I can copy the html from an existing page and using replace() substitute a different ID, but that only appears to work if the original page gadget has borders and title turned on.