From 334fb0efffe13bae1d83e5e1d5f4ae490270903b Mon Sep 17 00:00:00 2001 From: "Elf M. Sternberg" Date: Fri, 15 Apr 2016 17:00:55 -0700 Subject: [PATCH] HTML production is... marginally okay. --- .gitignore | 1 + Makefile | 7 +++++-- src/backbonestore.nw | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 410fd13..852aa71 100644 --- a/.gitignore +++ b/.gitignore @@ -9,5 +9,6 @@ bower_components/* npm-debug.log work/* htdocs/*.* +docs/* htdocs/lib package.yml diff --git a/Makefile b/Makefile index 9551ac7..fd45311 100644 --- a/Makefile +++ b/Makefile @@ -67,16 +67,19 @@ docs/backbonestore.tex: docs src/backbonestore.nw docs/backbonestore.pdf: docs/backbonestore.tex xelatex docs/backbonestore.tex; \ - while grep -s 'Rerun to get cross-references right' docs/backbonestore.log; \ + while grep -s 'Rerun to get cross-references right' ./backbonestore.log; \ do \ xelatex docs/backbonestore.tex; \ done + mv backbonestore.pdf docs + rm -f ./backbonestore.log ./backbonestore.aux ./backbonestore.out pdf: docs/backbonestore.pdf docs/backbonestore.html: docs src/backbonestore.nw - ${NOWEAVE} -html -x -delay src/backbonestore.nw > docs/backbonestore.html + $(NOWEAVE) -filter l2h -delay -x -autodefs c -html src/backbonestore.nw > docs/backbonestore.html +html: docs/backbonestore.html clean: - rm -f htdocs/*.* docs/*.tex docs/*.dvi docs/*.aux docs/*.toc docs/*.log docs/*.out diff --git a/src/backbonestore.nw b/src/backbonestore.nw index ae354f0..3c46726 100644 --- a/src/backbonestore.nw +++ b/src/backbonestore.nw @@ -406,7 +406,7 @@ you should understand this fairly easily. There are many different ways of providing templates to Backbone. The most common, especially for small templates, is to just include it as an inline string inside the View. The \textit{least} common, I'm afraid, -is the one I'm doing here: using the \ tag with an unusual mime +is the one I'm doing here: using the \\ tag with an unusual mime type to include it with the rest of the HTML. I like this method because it means all of my HTML is in one place.