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

浙公网安备 33010602011771号