{ "cells": [ { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [], "source": [ "import sys\n", "import re" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [], "source": [ "f = open(\"transforms.md\", \"r\")\n", "contents = f.read()" ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [], "source": [ "t = \"hello {{method Jeremy}} there {{method close}}\"" ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [], "source": [ "def do_method(ps): return str(ps)" ] }, { "cell_type": "code", "execution_count": 11, "metadata": {}, "outputs": [], "source": [ "fn_lu = {#'class': sub_class,\n", " #'arguments': sub_arguments,\n", " #'arg': sub_arg,\n", " #'xref': sub_xref,\n", " #'methods': sub_methods,\n", " 'method': do_method}" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": true }, "outputs": [], "source": [ "def sub_methods():\n", " \"\"\"

Methods

\n", "