File: brewweb

package info (click to toggle)
rapache 1.2.10-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,368 kB
  • sloc: sh: 18,629; ansic: 10,417; perl: 5,675; javascript: 2,800; makefile: 307
file content (14 lines) | stat: -rwxr-xr-x 306 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env Rscript
library(brew)
library(Rook)

h <- file.path(getwd(),'website')
t <- file.path(h,'templates')

setwd(t)
for (p in list.files(pattern='\\.html')){
	inputfile <- file.path(t,p)
	outputfile <- file.path(h,p)
	cat(inputfile,'\n')
	brew(inputfile,outputfile,tplParser=Utils$escape_html)
}