From cfea699ea83ea8e5c46dcef1a70e2eba58f172a4 Mon Sep 17 00:00:00 2001 From: Murilo Caixeta Date: Wed, 22 Oct 2014 13:31:34 +0000 Subject: [PATCH] Implementação do Mustache --- ferramentas/nptpol/dependencias.php | 30 ------------------------------ ferramentas/nptpol/template_mst.html | 2 -- 2 files changed, 0 insertions(+), 32 deletions(-) delete mode 100755 ferramentas/nptpol/dependencias.php delete mode 100644 ferramentas/nptpol/template_mst.html diff --git a/ferramentas/nptpol/dependencias.php b/ferramentas/nptpol/dependencias.php deleted file mode 100755 index 5e64abb..0000000 --- a/ferramentas/nptpol/dependencias.php +++ /dev/null @@ -1,30 +0,0 @@ - ou com a funcao scripttag do i3Geo - * Alem de carregar os scripts, carrega tambem o template no formato MUSTACHE, definindo a variavel - * javascript i3GEOF.nptpol.MUSTACHE - * O template e substituido pelos valores definidos em index.js no momento da inicializacao da ferramenta - */ -if(extension_loaded('zlib')){ - ob_start('ob_gzhandler'); -} -header("Content-type: text/javascript"); -include("index.js"); -include("dicionario.js"); -echo "\n"; -/** - * Inclui o template mustache do HTML usado para criar o conteudo da janela - */ -echo 'i3GEOF.nptpol.MUSTACHE = "'; -$texto = file_get_contents("template_mst.html"); -$texto = str_replace("\n", "", $texto); -$texto = str_replace("\r", "", $texto); -$texto = str_replace("\t", "", $texto); -$texto = str_replace('"', "'", $texto); -echo $texto; -echo '";'; -if(extension_loaded('zlib')){ - ob_end_flush(); -} -?> \ No newline at end of file diff --git a/ferramentas/nptpol/template_mst.html b/ferramentas/nptpol/template_mst.html deleted file mode 100644 index 6c9bd19..0000000 --- a/ferramentas/nptpol/template_mst.html +++ /dev/null @@ -1,2 +0,0 @@ -
-
\ No newline at end of file -- libgit2 0.21.2