From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Template org files, org-babel. Date: Thu, 04 Feb 2010 10:08:31 -0700 Message-ID: <87mxzpudww.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nd5Cb-0005kt-Lf for emacs-orgmode@gnu.org; Thu, 04 Feb 2010 12:09:13 -0500 Received: from [199.232.76.173] (port=59505 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nd5CZ-0005jx-IF for emacs-orgmode@gnu.org; Thu, 04 Feb 2010 12:09:11 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Nd5CU-0006MC-Ks for emacs-orgmode@gnu.org; Thu, 04 Feb 2010 12:09:11 -0500 Received: from mail-pz0-f186.google.com ([209.85.222.186]:34153) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Nd5CH-0006Ka-PF for emacs-orgmode@gnu.org; Thu, 04 Feb 2010 12:09:06 -0500 Received: by pzk16 with SMTP id 16so2786461pzk.14 for ; Thu, 04 Feb 2010 09:08:34 -0800 (PST) In-Reply-To: (Richard Riley's message of "Thu, 04 Feb 2010 03:38:27 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Richard Riley Cc: emacs-orgmode@gnu.org --=-=-= Hi Richard, That's an interesting idea. I know that Tom Dye has done something very similar with LaTeX templates, see [1] for an example. Given that babel supports output of raw Org-mode text, it shouldn't be overly difficult to define templates in your favorite scripting language and either write the results to new files, or dump the results into the current org-mode file. Here a small example I've worked up, I wonder how close it comes to what you had envisaged? --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=template.org Content-Transfer-Encoding: base64 CkFuIGV4YW1wbGUgb2YgdXNpbmcgdGVtcGxhdGVzCgoqIHRhc2tzCiAgREVBRExJTkU6IDwyMDEw LTAyLTA0IFRodT4KCllvdSBjYW4gY2hhbmdlIHRoZSB2YWx1ZXMgaW4gdGhlIGZvbGxvd2luZyB0 YWJsZSBhbmQgdGhlIHVzZSB0aGUKPXRlbXBsYXRlPSBzb3VyY2UtY29kZSBibG9jayB0byBjcmVh dGUgbmV3IHN1YnRhc2tzLgoKIyt0YmxuYW1lOiB0ZW1wbGF0ZS1kYXRhCnwgbmFtZSAgICAgfCBl eGFtcGxlIHN1YnRhc2sgIHwKfCBkdWUgZGF0ZSB8IDwyMDEwLTAyLTExIFRodT4gfAp8IG5vdGUg ICAgIHwgc2ltcGxlIGV4YW1wbGUgICB8CgojK2JlZ2luX3NyYyBlbWFjcy1saXNwIDp2YXIgZGF0 YT10ZW1wbGF0ZS1kYXRhIDpyZXN1bHRzIG9yZwogIChmb3JtYXQKICAiKiogJXMKICAgICBERUFE TElORTogJXMKICAlcwogICIKICAoc2Vjb25kIChmaXJzdCBkYXRhKSkKICAoc2Vjb25kIChzZWNv bmQgZGF0YSkpCiAgKHNlY29uZCAodGhpcmQgZGF0YSkpKQojK2VuZF9zcmMKCiMrcmVzdWx0czoK KiogZXhhbXBsZSBzdWJ0YXNrCiAgIERFQURMSU5FOiA8MjAxMC0wMi0xMSBUaHU+CnNpbXBsZSBl eGFtcGxlCg== --=-=-= I'll have to take a look at xiki. Cheers -- Eric Richard Riley writes: > What are the possibilities for auto creating an org file based on a > template so that all todo items are auto scheduled based on an arbitrary > start date? Or would this be strictly a job for sed/awk or something? > > Having just seen a screencast of xiki, > http://xiki.org/screencasts/web_development.html, I got to thinking of a > template workflow with the org-babel being used to perform steps e.g > create myql db, add user, update hosts file, etc etc etc. It would be > nice if that template flow could somehow inherit/prompt for init > parameters used throughout e.g start date, webname etc. Any ideas or > pointers in the right direction welcome. Hope that makes some sense. An > example of babel snippets setting/retrieving and sharing values between > them would be great. Possible? > > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode Footnotes: [1] http://orgmode.org/worg/org-contrib/babel/uses.php#sec-3 --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --=-=-=--