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
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
93
開発者とのコミュニケーションのはじめかた
sunnyone
0
54
概念モデル→論理モデルで気をつけていること
sunnyone
3
520
印象に残ったLLMの使い方5選
sunnyone
0
35
シンプルじゃないテーブルの見つけ方
sunnyone
1
370
Next.js App Router登場後の話
sunnyone
0
81
はやい開発のためのJSONデータ型の活用
sunnyone
0
180
フロントエンドトレンドのふりかえりと事業に合わせた選択
sunnyone
0
120
メタプログラミングとは
sunnyone
0
2.6k
Other Decks in Technology
See All in Technology
Standards et agents IA : un tour d’horizon de MCP, A2A, ADK et plus encore
glaforge
0
170
Rapid Start: Faster Internet Connections, with Ruby's Help
kazuho
2
660
AIが書いたコードを信じられない問題 〜レビュー負荷を下げるために変えたこと〜 / The AI Code Trust Gap: Reducing the Review Burden
bitkey
PRO
8
1.3k
最初の一歩を踏み出せなかった私が、誰かの背中を押したいと思うようになるまで / give someone a push
mii3king
0
160
「責任あるAIエージェント」こそ自社で開発しよう!
minorun365
9
2.1k
コードや知識を組み込む / Incorporate Code and Knowledge
ks91
PRO
0
160
Oracle AI Database@AWS:サービス概要のご紹介
oracle4engineer
PRO
4
2.4k
自分のハンドルは自分で握れ! ― 自分のケイパビリティを増やし、メンバーのケイパビリティ獲得を支援する ― / Take the wheel yourself
takaking22
1
930
レビューしきれない?それは「全て人力でのレビュー」だからではないでしょうか
amixedcolor
0
330
AI時代のガードレールとしてのAPIガバナンス
nagix
0
290
ぼくがかんがえたさいきょうのあうとぷっと
yama3133
0
200
20260428_Product Management Summit_tadokoroyoshiro
tadokoro_yoshiro
3
1.8k
Featured
See All Featured
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.7k
Designing Experiences People Love
moore
143
24k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
10k
From π to Pie charts
rasagy
0
170
RailsConf 2023
tenderlove
30
1.4k
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.6k
How to train your dragon (web standard)
notwaldorf
97
6.6k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
130
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
1
530
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
64
54k
Crafting Experiences
bethany
1
120
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
270
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
ご清聴ありがとうございました