From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id +NXSNgs7z15OewAA0tVLHw (envelope-from ) for ; Thu, 28 May 2020 04:16:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id cAa2Mgs7z17USQAA1q6Kng (envelope-from ) for ; Thu, 28 May 2020 04:16:11 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 51B109403EE for ; Thu, 28 May 2020 04:16:11 +0000 (UTC) Received: from localhost ([::1]:49076 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1je9xg-0004dr-W9 for larch@yhetil.org; Thu, 28 May 2020 00:16:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57926) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1je9x0-0004dj-1M for emacs-orgmode@gnu.org; Thu, 28 May 2020 00:15:26 -0400 Received: from mail-ot1-x32b.google.com ([2607:f8b0:4864:20::32b]:39835) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1je9wz-0000Xv-3w for emacs-orgmode@gnu.org; Thu, 28 May 2020 00:15:25 -0400 Received: by mail-ot1-x32b.google.com with SMTP id d7so1385837ote.6 for ; Wed, 27 May 2020 21:15:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:reply-to:from:date:message-id:subject:to; bh=RGzwx+BHB91/i22A70J1ENrj++T9NRVN+jxRaMdYuIA=; b=mRwygUdHxyYzEgVjrA29mn+A9es5EIjg+ZjLCJl4KYwMhx2tpVXDJGzCYw6Qjz8vpn UwCZU9byzfzMAlOOoXv98SjD7hRne4DZpJk/cnaJloVkoTYO7/gMWmiuv5kAP9nzpbhN 50JMuQ41GSS5L1l21KsIRzBOXqOm6ViWxdT2YcvsXCvLvDRnXsOZ9aQL/QZ5KG+OijXX 8pqVksEqEDRZyARFrJOEAcaJXHtj+Ofl35pN9VJSoADkSBTqMD4D1XO91zE5B2WxrN7Q Z2oP3VkbDU9cxebasYVQCS+T9F8m1FC5fvbpP1lx6UNUuPumCa17m9ybFnThMj1klTe4 98qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:from:date:message-id :subject:to; bh=RGzwx+BHB91/i22A70J1ENrj++T9NRVN+jxRaMdYuIA=; b=qXJkXmgAmdBh8log3vn44vCZIlpVz/vl7UT3AFhiK7zAxuMP91IyCTVGNNaqT06tMN uarwOQa6Wq341E0/Xc7EH4kk2K0s1qbPQUEL9VXGaQnZo4EbXgtBYeSvM34sWwM/pm/O kEuJfeFkwoAHMgoam+CeaO3e1Vn5oSWqLLptR1gCODXIx7W9WtGPhqlIyDB2b4H+Dz0I pU85AH16EO+I97e69rpNzZgiGA3FxgEtA7dHkWFRlDYIj24cH5oL/PZGPoc1Ipqf72RJ okFW8eYmCXzRmf6aHyahZooYbkQ/XnUcebhBRFJ4+wBXxyQ4DMwA8ZCo7GT4dxcRH9vn cq2Q== X-Gm-Message-State: AOAM530eBcQcAPgbjqGluawnSvgyaD9uiS5xKM/SlFIdFx9vDmWbtUdh ox+q/OxRkhWqNytegHSsiHMLqFzEt3uJDndq9TvGFG3dFwU= X-Google-Smtp-Source: ABdhPJzJoSEZcqEH4ttLai4SVhsee7zAD7IHCG4NHOoTUw7LIeexBKJRaOjWAHDONI6S276fZ5Dq2+BDf7rYAG6Bnn8= X-Received: by 2002:a9d:6b16:: with SMTP id g22mr986807otp.356.1590639322822; Wed, 27 May 2020 21:15:22 -0700 (PDT) MIME-Version: 1.0 From: George Mauer Date: Wed, 27 May 2020 23:15:12 -0500 Message-ID: Subject: How to both export html and show the code? To: emacs-orgmode Content-Type: multipart/alternative; boundary="000000000000cd7d6405a6ad9329" Received-SPF: pass client-ip=2607:f8b0:4864:20::32b; envelope-from=gmauer@gmail.com; helo=mail-ot1-x32b.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: gmauer@gmail.com Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=mRwygUdH; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -0.71 X-TUID: ZpqhtEWVlemd --000000000000cd7d6405a6ad9329 Content-Type: text/plain; charset="UTF-8" I would like to both render html and show a source block for the rendered html (I am aware of ob-browser, but I want this to be dynamic html content, not an image) I would have thought the following would work, but noweb returns an empty string Well, this is solvable with css is it not? #+name: challenge-1-solution #+begin_export html
#+end_export #+begin_src html :eval no :exports code :noweb yes <> #+end_src --000000000000cd7d6405a6ad9329 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I would like to both render html and show= a source block for the rendered html (I am aware of ob-browser, but I want= this to be dynamic html content, not an image)

I would = have thought the following would work, but noweb returns an empty string

=C2=A0 =C2=A0 Well, this is solvable with css i= s it not?

=C2=A0 =C2=A0 #+name: challenge-1-soluti= on
=C2=A0 =C2=A0 #+begin_export html
=C2=A0 =C2=A0 <= article id=3D"gradient-colors">
=C2=A0 =C2=A0 =C2=A0= <div></div>
=C2=A0 =C2=A0 =C2=A0 <style>
=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 #gradient-colors div {
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 width: 400px;
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 height: 200px;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 a= nimation: gradient 5s infinite linear;
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 }
=C2=A0 =C2=A0 =C2=A0 =C2=A0 @keyframes gradient {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 0% {
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 background-color: hsl(0, 100%, 50%);
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 }
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 25%= {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 background-color: hs= l(90, 100%, 50%);
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 }
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 50% {
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 background-color: hsl(180, 100%, 50%);
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 }
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = 75% {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 background-color:= hsl(270, 100%, 50%);
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 }
<= div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 100% {
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 background-color: hsl(360, 100%, 50%);
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 }
=C2=A0 =C2=A0 =C2=A0 =C2=A0 = }
=C2=A0 =C2=A0 =C2=A0 </style>
=C2=A0 =C2=A0 <= ;/article>
=C2=A0 =C2=A0 #+end_export
=C2=A0 =C2=A0 = #+begin_src html :eval no :exports code :noweb yes
=C2=A0 =C2=A0 = =C2=A0 <<challenge-1-solution>>
=C2=A0 =C2=A0 #+end_s= rc
=C2=A0 =C2=A0=C2=A0

--000000000000cd7d6405a6ad9329--