Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
PowerShellでRazorテンプレートエンジンを使ってみた
Search
sunnyone
July 12, 2014
Technology
3.1k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
PowerShellでRazorテンプレートエンジンを使ってみた
第 3 回 PowerShell 勉強会でのLTの資料です。
http://d.sunnyone.org/2015/04/powershellrazor.html
sunnyone
July 12, 2014
More Decks by sunnyone
See All by sunnyone
AI時代のDependency Injection
sunnyone
0
32
AIコーディング時代に意識したい縦と横
sunnyone
0
120
Rustとgtk-rsで自分用GUIツールを作ろう
sunnyone
1
110
multirange 型(多重範囲型)の活用
sunnyone
0
140
開発者とのコミュニケーションのはじめかた
sunnyone
0
70
概念モデル→論理モデルで気をつけていること
sunnyone
3
570
印象に残ったLLMの使い方5選
sunnyone
0
51
シンプルじゃないテーブルの見つけ方
sunnyone
1
400
Next.js App Router登場後の話
sunnyone
0
89
Other Decks in Technology
See All in Technology
あけおめLINE 傾向とその対策
nasa9084
0
300
データ界隈LT祭 第1回LT登壇
taromatsui_cccmkhd
2
1.5k
ほんとうの信頼性はヒーローが死んでからはじまる / True reliability begins after the hero dies
vtryo
0
110
Vibe Coding で作ったプロダクトをどう安全に動かすか / How to Safely Run Products Built with Vibe Coding
glidenote
0
510
リアーキテクチャ後の障害ゼロを目指したShadow Testingの取り組み
nihonbuson
PRO
1
170
AI時代、データエンジニアが一番おもろい
genshun9
0
690
AI 時代のスタートアップエコシステ厶から考究する技術的負債との向き合い方
m3m0r7
PRO
3
2.6k
Cloudflare Workers 向けアプリを C# で構築する ~WASM Native AOT への道~
nenonaninu
1
1.3k
AIによるクリエイティブ生成を行う上での試行錯誤
plaidtech
PRO
0
180
CLIライブラリ開発を支える技術
htnabe
0
150
aws-iot-platform-architecture-use-cases.pdf
ma2shita
0
550
AIエージェントの権限管理 3: Agentic RAG の Fine grained access control 編
ren8k
0
220
Featured
See All Featured
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
510
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
880
Designing for humans not robots
tammielis
254
26k
How to Think Like a Performance Engineer
csswizardry
28
2.8k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
3
1.3k
First, design no harm
axbom
PRO
2
1.3k
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
820
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
430
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
340
30 Presentation Tips
portentint
PRO
1
400
YesSQL, Process and Tooling at Scale
rocio
174
15k
Why Our Code Smells
bkeepers
PRO
340
58k
Transcript
PowerShell で Razor テンプレートエンジンを 使ってみた @_sunnyone
こんなことありませんか? • ちょっとだけ違うテキストをよく生成する – メールの雛形とか • PowerShell の変数でいけるがテキスト内部での制御 が難しい –
変数の値によって出したり出さなかったり Razor テンプレートエンジンを使ってみた
Razorとは • テンプレートエンジン • ASP.NET MVCとセットで利用される http://shiba-yan.hatenablog.jp/entry/20110317/1300294985 ASP.NET MVC 3
開発入門 (12) - Razor の文法 – しばやん雑記 http://haacked.com/archive/2011/01/06/razor-syntax-quick-reference.aspx
RazorEngine モジュール • 素のままでは手続きが不便 • RazorEngine というヘルパーライブラリがある – https://razorengine.codeplex.com/ –
https://github.com/Antaris/RazorEngine RazorEngineをPowerShellから使う
RazorEngineをPowerShellで - 準備 • 適当なフォルダにnuget.exeでインストール > cd proj\razortest > nuget.exe
install RazorEngine
RazorEngineをPowerShellで - スクリプト 詳細はISEで 2015/4/23追記 https://gist.github.com/sunnyone/e6948988a8e125b779ba
ご清聴ありがとうございました