-
Renders a page into Carbon images.
Declaration
Swift
static func renderVerbose( content: String, style: CarbonStyle ) -> EnvIO<ProgressReport, nef.Error, (ast: String, images: NEA<Data>)>Parameters
contentContent page in Xcode playground.
styleStyle to apply to the generated snippets.
Return Value
An
EnvIOto perform IO operations that produce errors of typenef.Errorand values with the render information, having access to an immutable environment of typeProgressReport. -
Renders a page into Carbon images and persit them.
Declaration
Swift
static func renderVerbose( content: String, style: CarbonStyle, filename: String, into output: URL ) -> EnvIO<ProgressReport, nef.Error, (ast: String, url: URL)>Parameters
contentContent page in Xcode playground.
styleStyle to apply to the generated snippets.
filenameName to use in the exported carbon images.
intoFolder where to render carbon images.
Return Value
An
EnvIOto perform IO operations that produce errors of typenef.Errorand values with the render information, having access to an immutable environment of typeProgressReport. -
Renders playground pages into Carbon images and persit them.
Declaration
Swift
static func render( playground: URL, style: CarbonStyle, into output: URL ) -> EnvIO<ProgressReport, nef.Error, NEA<URL>>Parameters
playgroundPath to Xcode playground.
styleStyle to apply to the generated snippets.
intoFolder where to write the markdown files.
Return Value
An
EnvIOto perform IO operations that produce errors of typenef.Errorand values with the carbon files generated of type[URL], having access to an immutable environment of typeProgressReport. -
Renders playground pages into Carbon images and persit them.
Declaration
Swift
static func render( playgroundsAt: URL, style: CarbonStyle, into output: URL ) -> EnvIO<ProgressReport, nef.Error, NEA<URL>>Parameters
playgroundsAtFolder where to search Xcode Playgrounds (recursive search).
styleStyle to apply to the generated snippets.
intoFolder where to write the markdown files for each Xcode Playground page.
Return Value
An
EnvIOto perform IO operations that produce errors of typenef.Errorand the list of playgrounds rendered[URL], having access to an immutable environment of typeProgressReport. -
Get an URL Request given a carbon configuration
Declaration
Swift
static func request(configuration: CarbonModel) -> URLRequestParameters
carbonConfiguration.
Return Value
URL request to carbon.now.sh
-
Get a
NSViewgiven a carbon configurationDeclaration
Swift
static func view(configuration: CarbonModel) -> CarbonViewParameters
carbonconfiguration
Return Value
View of type
NSView -
render(content:style:)Extension methodRenders a page into Carbon images.
Declaration
Swift
static func render( content: String, style: CarbonStyle ) -> EnvIO<ProgressReport, nef.Error, NEA<Data>>Parameters
contentContent page in Xcode playground.
styleStyle to apply to the generated snippets.
Return Value
An
EnvIOto perform IO operations that produce errors of typenef.Errorand the images generated of typeNEA<Data>, having access to an immutable environment of typeProgressReport. -
render(page:style:)Extension methodRenders a page into Carbon images.
Declaration
Swift
static func render( page: URL, style: CarbonStyle ) -> EnvIO<ProgressReport, nef.Error, NEA<Data>>Parameters
pagePath to Xcode playground page.
styleStyle to apply to the generated snippets.
Return Value
An
EnvIOto perform IO operations that produce errors of typenef.Errorand the images generated of typeNEA<Data>, having access to an immutable environment of typeProgressReport. -
renderVerbose(page:style:)Extension methodRenders a page into Carbon images.
Declaration
Swift
static func renderVerbose( page: URL, style: CarbonStyle ) -> EnvIO<ProgressReport, nef.Error, (ast: String, images: NEA<Data>)>Parameters
pagePath to Xcode playground page.
styleStyle to apply to the generated snippets.
Return Value
An
EnvIOto perform IO operations that produce errors of typenef.Errorand values with the render information, having access to an immutable environment of typeProgressReport. -
render(code:style:)Extension methodRenders a code selection into Carbon image.
Declaration
Swift
static func render( code: String, style: CarbonStyle ) -> EnvIO<ProgressReport, nef.Error, Data>Parameters
codeCode to render into Carbon image.
styleStyle to apply to the generated snippet.
Return Value
An
EnvIOto perform IO operations that produce errors of typenef.Errorand the image generated of typeData, having access to an immutable environment of typeProgressReport. -
renderVerbose(code:style:)Extension methodRenders a code selection into Carbon image.
Declaration
Swift
static func renderVerbose( code: String, style: CarbonStyle ) -> EnvIO<ProgressReport, nef.Error, (ast: String, image: Data)>Parameters
codeCode to render into Carbon image.
styleStyle to apply to the generated snippet.
Return Value
An
EnvIOto perform IO operations that produce errors of typenef.Errorand values with the render information, having access to an immutable environment of typeProgressReport. -
render(content:style:filename:into:)Extension methodRenders a page into Carbon images and persit them.
Declaration
Swift
static func render( content: String, style: CarbonStyle, filename: String, into output: URL ) -> EnvIO<ProgressReport, nef.Error, URL>Parameters
contentContent page in Xcode playground.
styleStyle to apply to the generated snippets.
filenameName to use in the exported carbon images.
intoFolder where to render carbon images.
Return Value
An
EnvIOto perform IO operations that produce errors of typenef.Errorand the file generated of typeURL, having access to an immutable environment of typeProgressReport. -
render(page:style:filename:into:)Extension methodRenders a page into Carbon images and persit them.
Declaration
Swift
static func render( page: URL, style: CarbonStyle, filename: String, into output: URL ) -> EnvIO<ProgressReport, nef.Error, URL>Parameters
pagePath to Xcode playground page.
styleStyle to apply to the generated snippets.
filenameName to use in the exported carbon images.
intoFolder where to render carbon images.
Return Value
An
EnvIOto perform IO operations that produce errors of typenef.Errorand the file generated of typeURL, having access to an immutable environment of typeProgressReport. -
renderVerbose(page:style:filename:into:)Extension methodRenders a page into Carbon images and persit them.
Declaration
Swift
static func renderVerbose( page: URL, style: CarbonStyle, filename: String, into output: URL ) -> EnvIO<ProgressReport, nef.Error, (ast: String, url: URL)>Parameters
pagePath to Xcode playground page.
styleStyle to apply to the generated snippets.
filenameName to use in the exported carbon images.
intoFolder where to render carbon images.
Return Value
An
EnvIOto perform IO operations that produce errors of typenef.Errorand values with the render information, having access to an immutable environment of typeProgressReport.
Install in Dash
CarbonAPI Protocol Reference