wintersmith

Intergrating Static Site generators with php

孤街浪徒 提交于 2020-01-01 03:27:44
问题 I'm currently building a website using php that won't need regular updating and I thought of using static site generators as it will have a blog like feature. However my website contains a form the will link with a database and the problem i'm having is that the static site generators don't recognize and parse php. I am currently considering using one of three static site generators -Jekyll -wintersmith - Piecrust I was wondering if this can be done or are static site generators just for

如何在find中排除目录。命令

别来无恙 提交于 2019-12-26 09:46:04
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 我正在尝试为所有JavaScript文件运行 find 命令,但是如何排除特定目录? 这是我们正在使用的 find 代码。 for file in $(find . -name '*.js') do java -jar config/yuicompressor-2.4.2.jar --type js $file -o $file done #1楼 如果 -prune 不适合您,这将: find -name "*.js" -not -path "./directory/*" 警告: 需要遍历所有不需要的目录。 #2楼 我发现以下比其他提出的解决方案更容易推理: find build -not \( -path build/external -prune \) -name \*.js # you can also exclude multiple paths find build -not \( -path build/external -prune \) -not \( -path build/blog -prune \) -name \*.js 重要说明: 在 -path 之后键入的路径必须与在不排除的情况下打印的 find 完全匹配。 如果这句话混淆了你,请确保在 整个 命令中使用完整路径,如下所示: