This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @using DD4T.Mvc.Html; | |
| @using Sample.Web.Mvc.HtmlHelpers; | |
| @model DD4T.ContentModel.Component | |
| @{ | |
| Layout = ""; | |
| } | |
| <h3>Example</h3> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @using DD4T.Mvc.Html; | |
| @using Sample.Web.Mvc.HtmlHelpers; | |
| @using DD4T.Mvc; | |
| @model DD4T.ContentModel.Component | |
| @{ | |
| Layout = ""; | |
| var linkFactory = FactoryService.LinkFactory; | |
| var componentFactory = FactoryService.ComponentFactory; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using DD4T.ContentModel.Factories; | |
| using DD4T.ContentModel.Exceptions; | |
| namespace Sample.Corporate.Mapping.Tridion | |
| { | |
| public class ModelFactory: IModelFactory |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Configuration; | |
| using Microsoft.Practices.Unity; | |
| using Microsoft.Practices.Unity.Configuration; | |
| namespace Sample.Corporate.Mapping.Tridion | |
| { | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace Sample.Corporate.Mapping.Tridion.Builders | |
| { | |
| using Sample.Corporate.Models; | |
| using DD4T.ContentModel; | |
| public class GeneralBuilder : BuilderBase | |
| { | |
| public GeneralDetail Create(IComponentPresentation componentPresentation) | |
| { | |
| var fields = componentPresentation.Component.Fields; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @using Sample.Corporate.Models; | |
| @model GeneralDetail | |
| <h3> | |
| @Model.Heading | |
| </h3> | |
| @foreach (var para in Model.Paragraphs) | |
| { | |
| <div class="block_level"> | |
| <div class="section_title verlagBlack green uppercased"> | |
| @para.SubTitle |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function (){ | |
| var MAXTIMES = 10; | |
| function add(value, callback) { | |
| console.log('Value: ' + value); | |
| callback(null); | |
| } | |
| function adder(i, doneCallback) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| SLIGRONLCDKENV=$(jq -r 'keys[] as $k | "\($k)=\(.[$k])"' env.json) | |
| while read -r line; do | |
| key=${line%=*} | |
| val=${line#*=} | |
| aws ssm put-parameter --name CDK_$key --value $val --type String 2>&1 > /dev/null | |
| done <<< $SLIGRONLCDKENV |