08 2015 档案

摘要:今天讨论的是如何在Powershell里实现一个简单的Template Engine的功能。假设模板文件的内容如下:template.tthello $namewelcome $company模板引擎的函数定义在Invoke-Template.ps1function Invoke-Template ... 阅读全文
posted @ 2015-08-24 15:24 卜海清 阅读(280) 评论(0) 推荐(0)
摘要:$filedata = @'app.name=Test Appapp.version=1.2'@$filedata | set-content appdata.txt$AppProps = convertfrom-stringdata (get-content ./appdata.txt -Raw)... 阅读全文
posted @ 2015-08-18 14:55 卜海清 阅读(308) 评论(0) 推荐(0)