Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
PowerShellでRazorテンプレートエンジンを使ってみた
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
sunnyone
July 12, 2014
Technology
3k
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
multirange 型(多重範囲型)の活用
sunnyone
0
110
開発者とのコミュニケーションのはじめかた
sunnyone
0
60
概念モデル→論理モデルで気をつけていること
sunnyone
3
530
印象に残ったLLMの使い方5選
sunnyone
0
38
シンプルじゃないテーブルの見つけ方
sunnyone
1
380
Next.js App Router登場後の話
sunnyone
0
83
はやい開発のためのJSONデータ型の活用
sunnyone
0
190
フロントエンドトレンドのふりかえりと事業に合わせた選択
sunnyone
0
120
メタプログラミングとは
sunnyone
0
2.6k
Other Decks in Technology
See All in Technology
EventBridge Connection
_kensh
4
630
サプライチェーンセキュリティの空白地帯 - 信頼できる”依存性”の未来を考える
rung
PRO
2
780
Claude code Orchestra
ozakiomumkj
3
1k
トークン数だけでは測れない — Claude Code 組織展開の効果検証から学んだこと
makikub
0
130
美味しいスイスチーズを作ろう🧀🐭
taigamikami
1
260
Diagnosing performance problems without the guesswork
elenatanasoiu
0
170
ITエンジニアを取り巻く環境とキャリアパス / A career path for Japanese IT engineers
takatama
4
1.8k
タクシーアプリ『GO』の実践的データ活用
mot_techtalk
3
170
コードレビューを制するチームがソフトウェアデリバリーのフローを制す / Beyond Code Review: Distributing Its Responsibilities Across the SDLC
mtx2s
4
1.3k
運用を見据えたAIエージェント設計実践
amacbee
1
3.2k
Terraformモジュールは、なぜ「魔境」化するのか
hayama17
2
210
【Gen-AX】20260530開催_JJUG CCC 2026 Spring
genax
0
440
Featured
See All Featured
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
430
Unsuck your backbone
ammeep
672
58k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
160
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
55k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
220
Chasing Engaging Ingredients in Design
codingconduct
0
210
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
190
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.3k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
360
The Limits of Empathy - UXLibs8
cassininazir
1
350
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
380
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
ご清聴ありがとうございました